Quiz Complete, well Done!
What is the syntax for a switch statement in JavaScript?
What happens if none of the cases in a switch statement match the expression value?
Which statement is used to stop the execution of a loop in JavaScript?
How many cases can a switch statement have?
What is the syntax for an if statement in JavaScript?
Which comparison operator is used to check if two numbers are equal?
When would you use switch statements?
What is the purpose of a chained if-else statement?
What is the purpose of an if-else statement?
How many conditions can be checked in a chained if-else statement?
What does a nested if-else statement do?
Which statement is used to skip the current iteration of a loop in JavaScript?
What is the purpose of switch statements?
What is the output of the following code?
x= 9
if(x == 10):
print('x is equal to 10')
else:
print('x is not equal to 10')
In an if-else statement, what happens if the condition is false?