"no problem? thats a problem"



apparently my code works perfectly but thats a problem somhow

var programming = false

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

my error states:
"Oops, try again. It looks like your happy function returns false instead of false when programming is false"


Illegal expression in the condition. We cannot make a comparison with an assignment operator, =. All we really want to do in this expression is negate whatever boolean value programming is set to.


programming = false;
console.log(programming);    # false
console.log(!programming);   # true


if (!programming) {


huh, i dont really get it but doing that worked so ok. thanks


There are 10 kinds of people who understand binary logic. Those who do, and those who don't.