Super confused


var quarter = function(number)

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

what im so confused


What are you trying to do?
Which lesson is this?


Functions, return and if / else

thats the lesson ^^


There are two components to this code. The quarter function, and the if statement. The call expression in this example is inside the condition parameter:

The function:

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

The return value will be one-quarter of number.

console.log(quarter(24));     // 6

The if statement you have is close. The general aim is to use a number that once divided by 4, will still be evenly divisible by 3.

if ( quarter(24) % 3 === 0 ) {

} else {


Since we want a true result, the number we pass to quarter() will need to be divisible by (4 * 3), the LCM of 4 and 3.


Some of the code is already written for you

You have to write the quarter function...
You started it but you never defined it...

var quarter = function(number) {
enter what the lesson asks here;

After you figure that out then you have to figure out what number you would have to pass to the function quarter for the if statement to be true.