# Assignment #8 - Functions, Return if/else

#1

``````// Define quarter here.
var quarter = function(number) {
return number / 4;
};

if (quarter(12) % 3 === 0 ) { return number/4;
console.log("The statement is true");

} else {
console.log("The statement is false");

}``````

#2

HI this line

``if (quarter(12) % 3 === 0 ) { return number/4;``

just remove the return number/4;

#3

ok, I'll give it go one mo...

#4

yeah, that worked, but the instructions say to write that! in that place or I just didn't understand the instructions ... thank you there seems to be something confusing about this assignment..or, it's just me!

#5

Hint says: This is a little tricky so let's take it slow. The code in the { } in the function should be

return number/4

#6

Oh, i totally misread it and put it in the wrong brackets! oh how i complicate my life!

#7

yes and you did it..

``````var quarter = function(number) {
return number / 4;
};``````

#8

yup, saw that at the last moment! I just need to be more careful about what I'm reading...