O'Reilly logo

JavaScript Programmer's Reference by Jonathan Reid, Thomas Valentine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 7

image

JavaScript Operators Reference

In JavaScript, operators perform operations on expressions. The expressions that the operators operate on are called operands. JavaScript supports unary operators (operators that work on one expression, like the increment operator), binary operators (operators that require two expressions, like most mathematical operators), and one ternary operator (which requires three expressions).

Operators in JavaScript can be grouped into seven broad categories:

  • Assignment: Assign values to variables
  • Comparison: Compare values
  • Arithmetic: Perform basic arithmetic—addition, subtraction, modulus, etc.
  • Bitwise: Modify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required