Statements
Last updated
Last updated
Javascript statements.
Type | Name | Summary |
---|---|---|
Break statement exits a loop.
Returns: void
Sample
Constant declaration.
Returns: void
Sample
Continue statement, jumps to next iteration of the loop.
Returns: void
Sample
do while loop
Returns: void
Sample
for loop
Returns: void
Sample
foreach loop
Returns: void
Sample
If statement
Returns: void
Sample
If/Else statement.
Returns: void
Sample
Provides a statement with an identifier that you can refer to using a break or continue statement.
For example, you can use a label to identify a loop, and then use the break or continue statements to indicate whether a program should interrupt the loop or continue its execution.
Returns: void
Sample
Switch statement.
Returns: void
Sample
try/catch statement
Returns: void
Sample
try/catch/finally statement
Returns: void
Sample
Variable declaration
Returns: void
Sample
while loop
Returns: void
Sample
void
Break statement exits a loop.
void
Constant declaration.
void
Continue statement, jumps to next iteration of the loop.
void
do while loop
void
for loop
void
foreach loop
void
If statement
void
If/Else statement.
void
Provides a statement with an identifier that you can refer to using a break or continue statement.
void
Switch statement.
void
try/catch statement
void
try/catch/finally statement
void
Variable declaration
void
while loop