Articles tagged: Statement
Found 26 documents
- Web/JavaScript/Reference/Statements/block A block statement (or compound statement in other languages) is used to group zero or more ...
- Web/JavaScript/Reference/Statements/break The break statement terminates the current loop, switch, or label statement and transfers ...
- Web/JavaScript/Reference/Statements/class The class declaration creates a new class with a given name using prototype-based inheritance.
- Web/JavaScript/Reference/Statements/const This declaration creates a constant that can be either global or local to the function in which ...
- Web/JavaScript/Reference/Statements/continue The continue statement terminates execution of the statements in the current iteration of the ...
- Web/JavaScript/Reference/Statements/debugger The debugger statement invokes any available debugging functionality, such as setting a ...
- Web/JavaScript/Reference/Statements/do...while The do...while statement creates a loop that executes a specified statement until the test ...
- Web/JavaScript/Reference/Statements/Empty An empty statement is used to provide no statement, although the JavaScript syntax would expect one.
- Web/JavaScript/Reference/Statements/export The export statement is used to export functions, objects or primitives from a given file (or ...
- Web/JavaScript/Reference/Statements/for The for statement creates a loop that consists of three optional expressions, enclosed in ...
- Web/JavaScript/Reference/Statements/for...in The for...in statement iterates over the enumerable properties of an object, in arbitrary order. ...
- Web/JavaScript/Reference/Statements/for...of The for...of statement creates a loop iterating over iterable objects (including Array, Map, ...
- Web/JavaScript/Reference/Statements/for_each...in The for each...in statement iterates a specified variable over all values of object's ...
- Web/JavaScript/Reference/Statements/function The function declaration defines a function with the specified parameters.
- Web/JavaScript/Reference/Statements/function* The function* declaration (function keyword followed by an asterisk) defines a generator ...
- Web/JavaScript/Reference/Statements/if...else The if statement executes a statement if a specified condition is true. If the condition is ...
- Web/JavaScript/Reference/Statements/import The import statement is used to import functions, objects or primitives that have been exported ...
- Web/JavaScript/Reference/Statements/label The labeled statement can be used with break or continue statements. It is prefixing a statement ...
- Web/JavaScript/Reference/Statements/let The let statement declares a block scope local variable, optionally initializing it to a value.
- Web/JavaScript/Reference/Statements/return The return statement ends function execution and specifies a value to be returned to the ...
- Web/JavaScript/Reference/Statements/switch The switch statement evaluates an expression, matching the expression's value to a case clause, ...
- Web/JavaScript/Reference/Statements/throw The throw statement throws a user-defined exception. Execution of the current function will stop ...
- Web/JavaScript/Reference/Statements/try...catch The try...catch statement marks a block of statements to try, and specifies a response, should ...
- Web/JavaScript/Reference/Statements/var The variable statement declares a variable, optionally initializing it to a value.
- Web/JavaScript/Reference/Statements/while The while statement creates a loop that executes a specified statement as long as the test ...
- Web/JavaScript/Reference/Statements/with The with statement extends the scope chain for a statement.