JS: Assignment Operators
Assignment Operators
var = val-
assign val to var, and return val [see let Declaration]
let zz; console.log(((zz = 3) + 1) === 4);
Increment / Decrement Assignment
++x-
same as
x=x+1(return new value) x++-
like
x=x+1but return old value
--x-
same as
x=x-1(return new value) x---
like
x=x-1but return old value
Compound Assignment Operators
x += y-
same as
x = x + y x -= y-
same as
x = x - y x *= y-
same as
x = x * y x /= y-
same as
x = x / y x %= y-
same as
x = x % y x **= y-
same as
x = x ** y
Logical Assignment Operators
JavaScript. Operators
JavaScript. Number
- JS: Number
- JS: Number Input. Binary, Hexadecimal, Octal, Etc
- JS: BigInt (tutorial)
- JS: Assignment Operators
- JS: Arithmetic Operators
- JS: Number Comparison Operators
- JS: Convert String and Number
- JS: Convert Decimal, Hexadecimal
- JS: Convert Decimal, Binary
- JS: Format Number
- JS: Random Integer Range Function 📜
- JS: Number (class)
- JS: Number Constructor
- JS: Number.prototype
- JS: Math (namespace)