Chapter 5. Using Operators and Expressions
After reading this chapter, you'll be able to
Understand the operators available in JavaScript.
Use JavaScript operators to perform math, assignments, relational tests, and equality tests.
Use the void operator to open a new window through a link.
Meet the Operators
The ECMA-262 standard defines assorted operators of various forms. These include:
Additive operators
Multiplicative operators
Bitwise operators
Equality operators
Relational operators
Unary operators
Assignment operators
Operators can be used both on literal values, like the number 10, and on variables and other objects in JavaScript.
Additive Operators
The term additive operators includes both addition and subtraction operators. It seems a bit of a misnomer, ...
Get JavaScript Step by Step now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.