Statements Flashcards

1
Q

Break

A

Exits a switch or loop

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

Class

A
A type of object template
Initiates a JS class
Properties and methods are assigned thru constructor() method 
Constructor() is called every time a class object is initialized
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Const

A

Declares a variable
Block scope
Cant be redeclared or reassigned

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

Continue

A

Breaks one iteration if a specified condition occurs, and continues to the next iteration in the loop

Jumps over not out (break)

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

Debugger

A

Stops the execution of JavaScript and calls the debugger

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

Do…While

A

Defined a code block to be executed once, and repeated if the conditions are true

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

For

A

Defines a code block to be executed as long as conditions are true

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

For…in

A

Loops properties of an object

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

For…Of

A

Loops the values of an iterable object

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

Function

A

Declares a function

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

If…else, else if

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
12
Q

Let

A

Declares a value

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

Return

A

Stops execution and returns value of the function

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

Switch

A

Marks a block of statements to be completed based upon given requirements

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

Throw

A

Generates an error

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

Try…Catch…Finally

A

Marks the block of statements to he executed when an error occurs in a try block and implements error handling

17
Q

While

A

Marks a block of statements to be executed while a condition is true