Try this self-check quiz to test your knowledge!
Which operator indicates "OR" in a conditional?
||
&&
!==
<=
The ||
symbol indicates "OR" in a conditional.
Which are valid comparison operators in a conditional assertion?
==
===
!=
@@
==
, ===
, and !=
are valid comparison operators.
What are the three parts of a standard for
loop declaration?
for
loop declaration are: Initializer, Exit Condition, Final Expression.
What is the preferred way to loop through an Array?
for
loop
while
loop
list
loop
for ... of
loop
The for ... of
loop is preferred for iterating through an Array.
True or False: Conditionals can be nested?
true false True: Conditionals can be nested.