January 2018
Intermediate to advanced
678 pages
20h 16m
English
As stated earlier, it’s common for web pages to process strings, and that’s why JavaScript supports string processing with string operators and quite a few string methods. Likewise, it’s common for web pages to process numbers, and that’s why JavaScript supports number processing with arithmetic operators and quite a few math-computation methods. In this section, we describe JavaScript’s arithmetic operators.
JavaScript uses +, -, and * for addition, subtraction, and multiplication, respectively. They work the same as the addition, subtraction, and multiplication operators you learned in elementary school. The multiplication operator uses the asterisk and not ...
Read now
Unlock full access