Statements
Methods Summary
Type | Name | Summary |
---|---|---|
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. |
Methods Details
break()
Break statement exits a loop.
Returns void
Sample
const()
Constant declaration.
Returns void
Sample
continue()
Continue statement, jumps to next iteration of the loop.
Returns void
Sample
do while()
do while loop
Returns void
Sample
for()
for loop
Returns void
Sample
for each in()
foreach loop
Returns void
Sample
if()
If statement
Returns void
Sample
if else()
If/Else statement.
Returns void
Sample
label()
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()
Switch statement.
Returns void
Sample
try catch()
try/catch statement
Returns void
Sample
try catch finally()
try/catch/finally statement
Returns void
Sample
var()
Variable declaration
Returns void
Sample
while()
while loop
Returns void
Sample
Last updated