2016-07-25 22:53:33 +02:00
|
|
|
# Statements
|
|
|
|
|
2016-11-02 01:44:37 +01:00
|
|
|
The following JavaScript statements are supported for the @boardname@:
|
2016-07-25 22:53:33 +02:00
|
|
|
|
|
|
|
## Variable declarations
|
|
|
|
* `const` statement - [read more](http://devdocs.io/javascript/statements/const)
|
|
|
|
* `let` statement - [read more](http://devdocs.io/javascript/statements/let)
|
|
|
|
|
|
|
|
## Block-structured statements
|
|
|
|
|
|
|
|
* `{ }` block statement - [read more](http://devdocs.io/javascript/statements/block)
|
|
|
|
* `if-else` conditional statement - [read more](http://devdocs.io/javascript/statements/if...else)
|
|
|
|
* `while` loop - [read more](http://devdocs.io/javascript/statements/do...while)
|
|
|
|
* `do-while` loop - [read more](http://devdocs.io/javascript/statements/do...while)
|
|
|
|
* `for(;;)` loop - [read more](http://devdocs.io/javascript/statements/for)
|
|
|
|
* `switch` statement (on numbers only) - [read more](http://devdocs.io/javascript/statements/switch)
|
|
|
|
|
|
|
|
## Control-flow commands
|
|
|
|
|
|
|
|
* `break` statement - [read more](http://devdocs.io/javascript/statements/break)
|
|
|
|
* `continue` statement - [read more](http://devdocs.io/javascript/statements/continue)
|
|
|
|
* `return` statement - [read more](http://devdocs.io/javascript/statements/return)
|
|
|
|
* `debugger` statement for breakpoints - [read more](http://devdocs.io/javascript/statements/debugger)
|
|
|
|
|
|
|
|
## Labelling statements
|
|
|
|
|
|
|
|
* labelled statement - [read more](http://devdocs.io/javascript/statements/label)
|
|
|
|
* `default` statement - [read more](http://devdocs.io/javascript/statements/default)
|
|
|
|
|
2017-03-07 19:17:01 +01:00
|
|
|
### ~button /javascript/functions
|
2016-07-25 22:53:33 +02:00
|
|
|
NEXT: Functions
|
|
|
|
### ~
|