Syntax help needed for Lesson 8 functions JS


My current code is:

var quarter = function(number) {
{ return number/4 }

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

What am I doing incorrectly?


To call on a function, you use functionName(input)

You're also missing the opening bracket for your if statement, and the closing bracket for the var creation.


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