Back to blog
Mar 17, 2024
1 min read

Javascript: Operators

Operators (JS)

Assignment : =

Math : +, -, /, *

Compound assignment : +=, -=, /=, *=

Increment / Decrement : ++a (pre), a++ (post), —

Object property access : . as in console.log()

Equality : == (loose equals), === (strict equals), != (loose not equals) !== (strict not equals)

Comparison : <, >, <=, >=

Logical : &&, ||

Bitwise &, |, >>, <<, >>>