JavaScript - Statements

Statements are one step in the program.

statements


expression statement Expression statement is evaluating the expression, then make an evaluation and program execution continues wit...
loop with condition at the end Condition testing is done at the end of the loop. consequently, the loop is performed at least once. after eac...
loop with condition on the beginning Condition testing is done at the beginning of the loop. before each iteration the condition is tested, if it i...
conditional statement By conditions we can control our program. thanks conditional statement we can control program running in two d...
block statement A compound statement is also known as block. to connect more than one statement in a statement, eventually red...
increment statement It is a mathematical operation that is used to increase the number by one.
decrement statement Decrement statement it is a mathematical operation that is used to decrease the number by one.

JavaScript

Other pieces of example codes:
while (i<20)
{
 i= i+2;
 if (i==16)
 {
    continue;
 }
 x++; 
}
do {
  i++;
  if (i==5)
    break;
} while ( i <10);
while ( y <= 32 )  
   y++;
z = (x * 2 / y +5);
do --i; while ( i > 0);
if (i - 10 >0) i = i-5;
Languages: en hu cz sk