Caffeinated Coder
Book an appointment
Lesson 04 · Basics

Operators and equality

An operator is a symbol that takes values and makes a new value. Follow a seven-line script as it stores a number and a string, works out 7 + 3 * 2 (multiplication first), joins text with +, and then compares 7 with "7" twice: == converts the string to a number and says true, while === never converts and says false.

9 min9 steps5 questionsBeginner
Fig 4 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.