Conditionals: Else

Conditionals: Else

what_day_is_it = "Thursday";
if(what_day_is_it != "Friday"){
 alert("Boo! The weekend is miles away!");
}
else{
 alert('Yay for Friday! The Weekend is nearly here!');
}
Comments are closed.