8/13 i need the awnser ASAP!


#1
// Define quarter here.
var quarter = function(number) {
   return number/4
}
if (quarter)(4) % 4 === 0 ) {
console.log("The statement is true");
} else {
console.log("The statement is false");
}

please tell me the awnser


#2
if (quarter)(4) % 4 === 0 ) {

this would consider quarter as your condition as it is what comes in () after if. better order it to:

if (quarter(4) % 4 === 0 ) {

and last but not least 4/4 % 4 is not 0.


#3

Hi,

you have an extra ) that isnt needed in quarter)(4), and also quarter of 4 is 1, then divided again by 4 does not leave you with 0, It should be something like

if (quarter(4) % 1 === 0 ) {
  ...
}

Thanks


#4

thanks :grinning: :smiley: