Functions and return if else - lesson 8


#1

Guys somebody please help , i have got stuck.

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

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

#2
  1. remove =
    it should be

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

  2. call the the function and give argument
    like
    quarter(arg)


#3

thanks for replyin, rcodeman. i got the answer. thanks a lot.:slight_smile: