how to make an if statement in javascript

Solutions on MaxInterview for how to make an if statement in javascript by the best coders in the world

showing results for - "how to make an if statement in javascript"
Florencia
20 Jan 2019
1if(condition1) { //runs if the condition is true
2  //type what you want to happen if the condition is true
3}else if (condition2) {
4  //type what you want to happen if the condition is true
5} else { //If no condition is true it will run this
6  //type what you want it to do
7}