Help on function return and if/else


#1

The instructions say to get the code to print out the statement is true which it does but when I click save and submit it says "Oops, try again. Hmm, it looks like your quarter function doesn't return -25 for -100"
here is my code
// Define quarter here.
var quarter=function(number)
{
return number+1;
};
if (quarter(2) % 3 === 0 ) {
console.log("The statement is true");
} else {
console.log("The statement is false");
}
please help me


#2

It should return:

return number / 4;

#3

IT SHOULD LOOK LIKE THIS. MAKE SURE CALCULATIONS ARE CORRECT.
| | | | | |
V V V V V V

// Define quarter here.
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");
}