Statements Flashcards
Break
Exits a switch or loop
Class
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
Const
Declares a variable
Block scope
Cant be redeclared or reassigned
Continue
Breaks one iteration if a specified condition occurs, and continues to the next iteration in the loop
Jumps over not out (break)
Debugger
Stops the execution of JavaScript and calls the debugger
Do…While
Defined a code block to be executed once, and repeated if the conditions are true
For
Defines a code block to be executed as long as conditions are true
For…in
Loops properties of an object
For…Of
Loops the values of an iterable object
Function
Declares a function
If…else, else if
Marks a block of statements to be executed depending on a condition
Let
Declares a value
Return
Stops execution and returns value of the function
Switch
Marks a block of statements to be completed based upon given requirements
Throw
Generates an error