Level 5 Level 7
Level 6

Go With The Control Flow, Dude

15 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

block statement
The most basic statement is a ____ which is used to group statements. The block is delimited by a pair of curly brackets ( {} ).
control flow statements
Block statements are commonly used with ____ (e.g. if, for, while).
A conditional statement is a set of commands that executes if a specified ____ is true.
execute a statement
Use the if statement to ____ when a logical condition is true. Use the optional else clause to execute a statement if the condition is false.
compound statements
You may also ____ using else if to have multiple conditions tested in sequence.
execute multiple statements
In a conditional statement, to ____, group them within a block statement ({ ... }) .
match is found
In a switch statement, the program evaluates an expression and when a ____ for a certain case the program executes the case's associated statements.
default case
In a switch statement, if a matching case is not found for the evaluated expression then the program executes the ____.
break statement
In a switch statement, if no ____ is included at the end of the matched case's associated statements the program will continue on executing the following case statements.
In a switch statement, if a break statement is included in the matching case the switch statement is ____ and the program continues with the next statement in your script.
The ____ keyword lets you create custom error messages or exceptions. Almost any object can be thrown as an exception.
Use the ____ statement to have your program attempt to execute a block of statements, and then handle any errors that arise when executing those statements.
Add a ____ block to a try...catch statement to execute a block of code regardless of whether an error was thrown or handled. This returns a value for the entire try...catch...finally group of statements.
____ objects have the properties 'name' and 'message'. Using these objects gives you another tool with which to deal process exceptions.
____ objects are used for deferred and asynchronous computations. They can be in a pending, fulfilled, rejected or settled state. These objects are a new implementation in ECMAScript 6.