Keywords Flashcards
(10 cards)
1
Q
What does break do?
A
Terminates a switch or a loop.
2
Q
What does continue do?
A
Jumps out of a loop and starts at the top.
3
Q
What does do … while do?
A
Stops the execution of JavaScript, and calls (if available) the debugging function.
4
Q
What does for do?
A
Marks a block of statements to be executed, as long as a condition is true.
5
Q
What does function do?
A
Declares a function.
6
Q
What does if … else do?
A
Marks a block of statements to be executed, depending on a condition.
7
Q
What does return do?
A
Exits a function.
8
Q
What does switch do?
A
Marks a block of statements to be executed, depending on different cases
9
Q
What does try … catch do?
A
Implements error handling to a block of statements
10
Q
What does var do?
A
Declares a variable