Please help me with the error


#1

Ques: Declare a variable called programming and set it to false. Then, write an if/else statement inside happy so that happy returns true if programming is false and false otherwise.

Ans:

var programming = false;

var happy = function() {
if (programming) {
return !false;
}
else {
return false;
}
};

Please help me with the error


#2

On this part

Even though you declared your variable programming = false, you can put an expression that evaluates to true (using !=) in your if() statement.

you should write it like this:

if(programming != true) { //meaning, your programming is equal to false
    return true; //your programming is equal to false so it will return true base on the instruction
}