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')
}
Login in to like
Login in to comment