Javascript examples for Language Basics:Introduction
Useful JavaScript Operators
Operator | Description |
---|---|
++, -- | Pre- or post- increment and decrement |
+, -, *, /, % | Addition, subtraction, multiplication, division, remainder |
<, <=, >, >= | Less than, less than or equal to, more than, more than or equal to |
==, != | Equality and inequality tests |
===, !== | Identity and nonidentity tests |
&&, || | Logical AND and OR |
= | Assignment |
+ | String concatenation |
?: | Three operand conditional statement |