Stuck


#1

  1. Introduction to Functions #8


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


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



#2

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

You forgot to return the number / 4,use return keyword before number / 4.

Point2.
if (quarter(13) % 3 === 0 )

This test should produce true pass any value to quarter function that makes the test to return true values like 12,24 etc..


#3

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