Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cheat sheet javascript

if ((age >= 14) && (age < 19)) {        // logical condition
status = "Eligible.";               // executed if condition is true
} else {                                // else block is optional
status = "Not eligible.";           // executed if condition is false
}
Source by htmlcheatsheet.com #
 
PREVIOUS NEXT
Tagged: #cheat #sheet #javascript
ADD COMMENT
Topic
Name
6+8 =