-
Getting Started
32-
Lecture1.1
-
Lecture1.2
-
Lecture1.3
-
Lecture1.4
-
Lecture1.5
-
Lecture1.6
-
Lecture1.7
-
Lecture1.8
-
Lecture1.9
-
Lecture1.10
-
Lecture1.11
-
Lecture1.12
-
Lecture1.13
-
Lecture1.14
-
Lecture1.15
-
Lecture1.16
-
Lecture1.17
-
Lecture1.18
-
Lecture1.19
-
Lecture1.20
-
Lecture1.21
-
Lecture1.22
-
Lecture1.23
-
Lecture1.24
-
Lecture1.25
-
Lecture1.26
-
Lecture1.27
-
Lecture1.28
-
Lecture1.29
-
Lecture1.30
-
Lecture1.31
-
Lecture1.32
-
-
Check Point
1-
Lecture2.1
-
-
Locked
4-
Lecture3.1
-
Lecture3.2
-
Lecture3.3
-
Lecture3.4
-
Math Operator Short-hand
Hey guys. In this JavaScript tutorial I want to build on what we’ve already learn about mathematical operators, and show you a few cool short-hand notation versions that will save you time.
Things You Should Know
- += is the short-hand for adding to the current variable
- -= is the short-hand for subtracting from the current variable
- *= is the short-hand for multiplying by the current variable
- /= is the short-hand for dividing the current variable
- ++var or var++ are the incremental operators (increase the value of the variable by 1).
- –var or var– are the decremental operators (decrease the value of the variable by 1).