Java Reference
In-Depth Information
(continued)
operator type
operators
evaluation order for like eleMents
Equality
Left to right
==, !=, ===, !===
Bitwise AND
Left to right
&
Bitwise XOR
Left to right
^
Bitwise OR
Left to right
|
Logical AND
Left to right
&&
Logical OR
Left to right
││
Conditional
Right to left
?:
Assignment
=, +=, ‐=, *=, /=,
%=, <<=, >>=, >>>=,
&=, ^=, |=
Right to left
Comma
Left to right
,
Javascript stateMents
The following tables describe core JavaScript statements.
Block
JavaScript blocks start with an opening curly brace ( { ) and end with a closing curly brace ( } ). Block
statements are meant to make the contained single statements execute together, such as the body of
a function or a condition.
stateMent
introduced
description
JavaScript 1.5
Used to group statements as delimited by the curly brackets.
{ }
conditional
The following table lists conditional statements for JavaScript as well as the version in which they
were introduced.
stateMent
introduced
description
JavaScript 1.2
Executes a block of code if a specified condition is true .
if
JavaScript 1.2
The second half of an if statement. Executes a block of code
if the result of the if statement is false .
else
JavaScript 1.2
Specifies various blocks of statements to be executed depending
on the value of the expression passed in as the argument.
switch
Search WWH ::




Custom Search