complexity: 2 ; importance: 5; author: docentmail


"if" statement

Problem 2016-03-24-23-42

Question: Modify the snippet to use "if" statement to alert "It is night." in case the variable "isNight" is true and "It is not night." otherwise.

var isNight=true; // false

// put you if here
alert("It is night.");
alert("It is not night.");