3  Operators

You learned about the basic assignment operator (=) and some of the arithmetic operators in the previous chapter. In this chapter, we are going to explore other assignment operators, as well as comparison operators, that allow you to determine the relationship between variables and values, such as whether they have the same value. We will also explore the Boolean data type, which has either a true or a false value that can be assigned to variables or is the result of a comparison operation.

Images  What Are Operators?

Operators represent actions that you use to change the value of a variable, or compare values or variables. The word

Get JavaScript for Sound Artists 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.