Lesson 8


#1


It shows this error message
Oops, try again. There was a problem with your syntax.


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

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


#2

here:

var quarter = function (number);

semi-colons are not allowed in this line of code


#3

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