Consider following snippet:

var iLoveJavaScript = true;
var iLoveLearning = false;

if(iLoveJavaScript && iLoveLearning) {
  console.log("Awesome! Let's keep learning!");
} else if(!(iLoveJavaScript || iLoveLearning)) {
  console.log("Let's see if we can change your mind.");
} else {
  console.log("You only like one but not the other? We'll work on it.");
}
What will be printed to the console?

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback