Creating A Javascript Function With If Then Statements Code Example


Example: javascript if else


var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable