Programming in JavaScript language

The most important commands from JavaScript programming language in one place, a unique comparison and each command-operator is shown using a piece of program. Statements-operators of these sample programs are clickable, so with a simple click we have more information available.

Programming language JavaScript:


Examples - JavaScript

JavaScript
x = 90 % 8;    // x = 2
y = 15 % 4;    // y = 3
z = (x % y) %5;// z = 2
JavaScript
2 << 2      
2 >> 2      
0xff & 0x05 // 0x05
0x01 | 0x02 // 0x03
~ 2         
0x1A ^ 0x1A 

Other pieces of example codes:
JavaScript
10 >a && a>5
continue;
64 | (i | k)
if (i==5)
    break;
~(i & 4)
if ( x == 5 )
   --y;
Languages: en hu cz sk