Chapter 5

Working with Operators, Expressions, and Statements

In This Chapter

arrow Reading and coding JavaScript expressions

arrow Changing values with assignment operators

arrow Thinking logically with comparison operators

arrow Doing the math with arithmetic operators

arrow Getting wise to bitwise operators

arrow Putting it together with string operators

“Hello Operator. Can you give me number 9?”

— The White Stripes

JavaScript operators, expressions, and statements are the basic building blocks of programs. They help you manipulate and change values, perform math, compare two or more values, and much, much more.

In this chapter, you discover how operators, expressions, and statements do their work and how you can best use them to your advantage.

ontheweb Don’t forget to visit the website to check out the online exercises ...

Get Coding with JavaScript For Dummies 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.