Jquery If Else Statement Code Example


Example 1: javascript if else

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

Example 2: if statements javascript

if (pros < 10) {   console.log("LESS THAN 10 PROS!"); } else if (pros < 5) {   console.log("LESS THAN 5 PROS!"); } else {   console.log("How many pros are there?"); }

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