Why is thsi code still appearing that is false?


#1


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




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


#2

(18 / 4) % 3 = 1.5


#3

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