Functions, Return, and If/Else


#1

Please help. I don't understand what to do in the lesson and I'm stuck on it.
Thanks to any who help.


#2

please post your problem


#3

im also stucked with this problem, please help..


#4

Hello ,

This worked for me:
var quarter = function(number) {
return number / 4;
};
if (quarter(24) % 3 === 0 ) {
console.log("The statement is true");
} else {
console.log("The statement is false");
}


#5

your code above did not work because you've not defined
what "quarter" is....
Define your variable quarter and give it a value;eg

var quarter = function (){
// your code goes here;
}