I am stuck in javascipt return functions


#1

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.
https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/3?curriculum_id=506324b3a7dffd00020bf661
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");
}

#2

Write 12 instead of 6


#3

Thank you very much :slight_smile:


#4

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