Statements Reference
Next ❯Functions Reference
- turned_in_notVariable Statements
- turned_in_notConditional Statements
Statements Used if__else__else if To execute a block of statements depending on a condition is true switch__case__default To execute a block of statements depending on different cases
- turned_in_notLoop Statements
Statements Used do__while To execute a block of statements and repeats the block while a condition is true for To execute a block of statements as long as a condition is true for__in To execute a block of statements for each elements of an object (or array) for__of To execute a block of statements for each elements of an array while To execute a block of statements while a condition is true
- turned_in_notCore Statements
Statements Used class To declare a class function To declare or define a function import To import functions/classes/objects exported from an external module export To export functions/classes/objects to be available for imports in external modules use strict To execute statement in strict mode, help to write secure codes
- turned_in_notInline Statements
Statements Used break To exit from a switch or a loop continue To skip an iteration (in the loop) if a specified condition is true lebel: To jump to a statement with an specified lebel that you can refer it via break or continue statement return To stop the execution of a function and returns a value from that function debugger To stop the execution of javascript, and calls the debugging function (if available)
- turned_in_notError Statements
Statements Used throw To throw (generates) an error try__catch__finally To execute a block of statements when an error occurs in a try block, and implements error handling in a catch block and executes finally block statements (if any)
- turned_in_notPromise Statements
Statements Used Promise To create a promise call, which assures to return any result on resolution/rejection async function To create async function expression await To pause and resume an async function and wait for the promise's resolution/rejection result, only be used inside async function
- turned_in_notGenerator Statements
❮ Prev Operators Reference
Next ❯Functions Reference