13. Not



could you help me please, what is wrong in this code??
Oops, try again. It looks like your happy function returns false instead of true when programming is false

var programming = false;

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


this line:

if (programming = false)

you set programming to false (single equal sign) instead of comparing it with false (two equal signs)


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.