Function / Returns / If / Else


Can someone please tell me how to fix this??
I suck at JS so far :unamused:


@viviennetran78: I'm still a beginner in JS but I know that in functions, where you need to calculate something to use on another part of your code, you should return the value.
And in this case, you're just printing it out.


I wish i could help, but im stuck at another problem, but don't bring yourself down this is just the beginning!


it should looks like this

// Define quarter here.
var quarter = function(number) {
return number/4

if (quarter(12) % 3 === 0 ) {
console.log("The statement is true");
} else {
console.log("The statement is false");


thank you it helped a lot! i totally forgot to define it first place!