How to write an if statement in JavaScript?
Explanation
The if statement executes a code if a specified condition is true. If the condition is false, another specified statement can be executed. example: if (myScore == 10) { alert ('continue to next level at quizful.com') } else { alert ('continue learn this topic at quizful.com') }

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes