8. What is wrong with this code?


#1

I have the same problem. What is wrong with this code:

rter 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");


8.Functions, return and if/else
#2

Var quarter  // v should be lower case. Remember javascript is case-sensitive

now here

else {
console.log("The statement is false");
   // you forgot to close else

#3

Thank you. It worked. I have fixed the issues. I have appreciated.


#4

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