How to write an if statement in JavaScript?
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') } else { alert ('continue learn this topic at') }

Follow CodeGalaxy

Mobile Beta

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