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

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?