Functions, return and if / else


I'd like to know what's wrong on my code? i think i made it pretty right.

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


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


hello @allenkaojr
Lets read instructions.

Call the function inside the if statement's condition (and put in a parameter value!) such that "The statement is true" is printed to the console.

We are missing something ?


thanks ! i finally made it, really appreciate!


Good work ! :thumbsup:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.