#13 Not


#1

I once again got a problem in this Javascript course!
my code looks like this;

var programming = false;

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

and I get the feedback It looks like your happy function returns false instead of true when programming is false.


#2

Switch return true and return false around.


#3

Guess the problem is that you don't even look at the programming variable but instead use this !true. Which doesn't make much sense as it will be always the same value (false) therefore false is displayed.


#5

var programming = false;

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


#6

// Declare your variables here!
var programming = false;

var happy = function() {
// Add your if/else statement here!
if(!true==programming){
return true;
}
else{
return false;
}

};

// this should also work


#7

This topic was solved a month ago. Please do not revive old topics for no reason.

Thanks.