about12/14


#1

What's wrong here?

// Declare your variables here!
var tired = true;
var bored = false;

var nap = function() {
  // Add your if/else statement here!
  if(tired || !bored){
  return true;
  }
  else if(tired || bored){
  return true;
  }
  else if(!tired || !bored){
  return true;
  }
  else if(!tired || bored){
  return false;
  }
  
};

#2

Inside the nap function, create an if statement that returns true if either tired or bored (or both!) are true, and false otherwise

So only one if statement that uses or.


#3

thanx...problem solved :smile:


#4

shut up haxor :hamburger: :baby_bottle: you really aren't helping


#5

var tired = true;
var bored = false;

var nap = function() {
// Add your if/else statement here!
if (tired || bored) {
return true;
}
else if ( tired || bored == false){
return false;
}
};


#6

By any chance can you help with problem 10 :frowning: I cant seem to get it and I see you passed #12 already!!! PLEASEEEEE THANKS


#7

Open an own thread an post your code there as well as the error message and maybe what you're supposed to do (if it is more than 3 lines of instruction better the link to the exercise)


#8

thank you danny!!!!!!!!!!!!!!!!!!!!!!!!!!