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'?


#1

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

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

} else {
console.log("The statement is false");
}


https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/3?curriculum_id=506324b3a7dffd00020bf661


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'?


Replace this line with your code.


#2

here:

if (quarter() % 3 === 0 )

you should supply a value between the parentheses when calling quarter. After being divided by 4, the number must be divisible by 3


#3

Thanks, it worked. Have a nice day @stetim94


#4

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