3.1 Operators in JavaScript

Welcome to this introductory video for the third section of the course, dedicated to operators in JavaScript. So far you have learned how to declare variables and constants. The next step is to manipulate them to build the logic of your programs, and that's exactly what operators are for.

An operator combines variables and constants — its operands — to produce a new value, called an expression. By chaining expressions together, you can implement the algorithms and the business rules behind every real application.

The categories you will explore

  • Arithmetic operators: +, -, *, /, %, **, plus increment and decrement.
  • Assignment operators: = and its compound forms +=, -=, *=, /=.
  • Comparison operators: >, >=, <, <=, ===, !==.
  • Logical operators: &&, ||, ! for combining booleans (and, as you'll see, non-boolean values too).
  • Bitwise operators: low-level operations on the bits of a number.

Each upcoming video focuses on one category with concrete examples. See you in the next lesson where we start with arithmetic operators.