Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript if else

if (condition) {
	// your code here
} else if(condition){
	// code to run if condition is true
}else{
  // code to run if condition is false
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
6+1 =