8/13


#1
var quarter=function(number)
{ return number/3
}



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

help? error message reads "Oops, try again. There was a problem with your syntax."


10/13
#2

In the directions, it says to return the number / 4; not 3.

In your "if" statement,

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

does not make sense, both the "3" after "quarter" and the 0 after "3"(the one that does not make sense.

Instead, you must do it like this:

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


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

In the "if" statement, the number after "quarter" can either be 12,24,36, all multiples of 12. Hope it helped! :smiley: