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

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy