javascript-if Flashcards
What is the purpose of a loop?
run code a specific number of times
What is the purpose of a condition expression in a loop?
how long code will run for
What does “iteration” mean in the context of loops?
keeping loop
When does the condition expression of a while loop get evaluated?
begining of each iteration
When does the initialization expression of a for loop get evaluated?
very start of loop
When does the condition expression of a for loop get evaluated?
after the initiation
When does the final expression of a for loop get evaluated?
after the iteration
Besides a return statement, which exits its entire function block, which keyword exits a loop before its condition expression evaluates to false?
What does the ++ increment operator do?
increate the value
What does the ++ increment operator do?
for in loop