Course

Introduction to Operators

Loading...

We know many operators from school, like: addition , multiplication , and subtraction .

In programming, operators perform operations on data values (operands) and produce results.

For example, in  :

  •  is the operator
  • is the left operand
  • is the right operand
  • Resulting in

JavaScript includes the following categories of :

  • Arithmetic Operators: 5 + 3 results in 8.
  • Comparison Operators: 5 > 3 results in true.
  • Logical Operators: true && false results in false.
  • Assignment Operators: let x = 5; x += 3; results in x being 8.
  • Conditional (Ternary) Operator: let result = (5 > 3) ? 'Yes' : 'No'; results in result being 'Yes'.

In the next few lessons, we'll explore these operators in detail.

Loading...

0 Comments

"Please login to view comments"

glass-bbok

Join the Conversation!

Subscribing gives you access to the comments so you can share your ideas, ask questions, and connect with others.

Upgrade your account
tick-guideNext Lesson

Arithmetic Operators