Chapter 5. Using operators and expressions
After completing this chapter, you will be able to
Understand the operators available in JavaScript.
Use JavaScript operators to perform math, equality tests, relational tests, and assignments.
Use the void operator to open a new window by using a link.
Meet the operators
The ECMA-262 specification defines assorted operators of various forms. These include the following:
Additive operators
Multiplicative operators
Bitwise operators
Equality operators
Relational operators
Unary operators
Assignment operators
The comma operator
Operators can be used both on literal values, such as the numeral 10, and on variables and other objects in JavaScript.
Additive operators
The term additive operators includes both addition and ...
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.