If Statement


If Statement execute a block of code if a specified condition is true.

Code Structure
var country = prompt("Where are you from?");
if(country === "UK"){
 alert("You are from Europe.");
}

Share this

Related Posts