Results 1 - 20 of 26


The break statement terminates the current loop, switch, or label statement and transfers program control to the statement following the terminated statement.
JavaScript Statement


The continue statement terminates execution of the statements in the current iteration of the current or labeled loop, and continues execution of the loop with the next iteration.
JavaScript Statement


The debugger statement invokes any available debugging functionality, such as setting a breakpoint. If no debugging functionality is available, this statement has no effect.
JavaScript Statement


The do...while statement creates a loop that executes a specified statement until the test condition evaluates to false. The condition is evaluated after executing the statement, resulting in the specified statement executing at least once.
JavaScript Statement


An empty statement is used to provide no statement, although the JavaScript syntax would expect one.
JavaScript Statement

The statement iterates over the enumerable properties of an object, in arbitrary order. For each distinct property, statements can be executed.
JavaScript Statement


The function declaration defines a function with the specified parameters.
JavaScript Statement


The if statement executes a statement if a specified condition is true. If the condition is false, another statement can be executed.
JavaScript Statement


The labeled statement can be used with break or continue statements. It is prefixing a statement with an identifier which you can refer to.
JavaScript Statement


The return statement ends function execution and specifies a value to be returned to the function caller.
JavaScript Statement


The throw statement throws a user-defined exception. Execution of the current function will stop (the statements after throw won't be executed), and control will be passed to the first catch block in the call stack. If no catch block exists among caller functions, the program will terminate.
JavaScript Statement


The try...catch statement marks a block of statements to try, and specifies a response, should an exception be thrown.
JavaScript Statement


The variable statement declares a variable, optionally initializing it to a value.
JavaScript Statement


The while statement creates a loop that executes a specified statement as long as the test condition evaluates to true. The condition is evaluated before executing the statement.
JavaScript Statement


A block statement (or compound statement in other languages) is used to group zero or more statements. The block is delimited by a pair of curly brackets.
JavaScript Reference Statement


The export statement is used to export functions, objects or primitives from a given file (or module).
ECMAScript6 JavaScript Statement


The for statement creates a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement (usually a block statement) to be executed in the loop.
for JavaScript Loop Statement


The for...of statement creates a loop iterating over iterable objects (including Array, Map, Set, String, TypedArray, arguments object and so on), invoking a custom iteration hook with statements to be executed for the value of each distinct property.
ECMAScript6 JavaScript Statement


The import statement is used to import functions, objects or primitives that have been exported from an external module, another script, etc.
ECMAScript6 JavaScript Modules Statement


The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case.
JavaScript Reference Statement Web