Keywords Flashcards

1
Q

What does break do?

A

Terminates a switch or a loop.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does continue do?

A

Jumps out of a loop and starts at the top.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does do … while do?

A

Stops the execution of JavaScript, and calls (if available) the debugging function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does for do?

A

Marks a block of statements to be executed, as long as a condition is true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does function do?

A

Declares a function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does if … else do?

A

Marks a block of statements to be executed, depending on a condition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does return do?

A

Exits a function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does switch do?

A

Marks a block of statements to be executed, depending on different cases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does try … catch do?

A

Implements error handling to a block of statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does var do?

A

Declares a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly