Latest Tutorials

Boolean (logical) operators (!, &&, ||)

The Boolean operators are used to compare two statements and direct the further

Multiplicative (arithmetic) operators (*, /, %)

The multiplicative operators are part of the arithmetic operators. There are three multiplicative operators; these are mul...

Additive (arithmetic) operators (+, -)

The additive operators are part of the arithmetic operators. There are two additive operators; these are add ("+&...

Relational (comparison) operators (<, >, <=, >=)

The relational operators are part of the comparison operators. There are four relational operators; these are les...

Equality (comparison) operators (==, !=, ===, !==)

The equality operators are part of the comparison operators. There are four equality operators; these are equal ("==")...

Conditional (ternary) operators (?, :)

The conditional operator allows a conditional assignment to a variable, depending on the

Assignment operators (=, *=, /=, %=, +=, -+, <<=, >>=, >>>=)

The main assignment operator is a regular equal sign ("="), for instance: var num = 8; In combinations with a

Comma operators (,)

The comma operator allows the execution of more than one operation in a single statement. Following example shows how that works: ...

The if statement (if...else if...else)

The most often used flow control statement is if statement, or extended if...else if...else. This kind of statement controls the flow of t...

The switch statement (switch...case...default)

The switch statement is another flow control based type of a statement. This type of a conditional statement is always used for more than a few solutions n...