Syntax help needed for Lesson 8 functions JS


#1

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?


#2

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.


#3

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