Unlike other operators, the increment and decrement operators act on only one operand. They are hence called Unary operators.
They can be used either before or after a variable as in:
a++; b--; OR ++a; --b;
Read the section again, if you’ve not understood this concept.
Take a look at the following code… what do you think will be the value of variable res?
var res = 25 + 100 * 4;
There are two ways to look at this
res = 25 + (100 * 4); res = 425 OR res = (25 + 100) * 4; res = 500
Brewster Kahle, the creator of the Internet Archive has collected over half a million books! The Internet Archive itself is a collection of websites, music, images and public-domain books. [more...]