I am stuck in javascipt return functions


I am stuck at JS return functions in exercise "Functions, return and if / else"
Need some help

Here's a link for the exercise I am stuck at.
I have witten the below code but its giving this error:
"Oops, try again. Did you remember to call quarter() inside the if statement with a value that would cause it to print 'The statement is true'?"

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

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


Write 12 instead of 6


Thank you very much :slight_smile:


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