Please help with number 8


I have gone over this what feels like a hundred times. can anyone please shine some light on it?

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

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

It keeps saying there is something wrong with my syntax.



This is about control flow not functions or variables...

So there's no need of semicolons after the curly brackets of the if/else statement.


Thanks for that. however I get the same response even if I remove those semicolons



Hey this is var keyword for defining a variable right?


Yes. Im creating the variable "quarter" and making it a function



But your using val keyword instead. It should be var keyword right?


You are absolutely right. I should have realized that from the "unexpected identifier" message. thank you so much for your help