JavaScript Operators
An operator is capable of manipulating a certain value or operand.
Operators are used to perform specific mathematical and logical
computations on operands. In other words, we can say that an operator
operates the operands. In JavaScript operators are used for compare values,
perform arithmetic operations etc.
There are various
operators
supported by
JavaScript:
•Arithmetic Operators
•Assignment Operators
•Comparison Operators
•Logical Operators
•Ternary Operators
•typeof Operator
JavaScript
Arithmetic
Operators
Operator Description
+ Addition
- Subtraction
* Multiplication
** Exponentiation (ES2016) // Old way
const old = Math.pow(3, 7);
// 2187// ✅ ES7 way
const es7 = 3 ** 7;
// 2187
/ Division
% Modulus (Division Remainder)
++ Increment
-- Decrement
Operator
precedence -
JavaScript | MDN
(mozilla.org)
•Next Video
•Operator_Precedence

JavaScript operators

  • 1.
    JavaScript Operators An operatoris capable of manipulating a certain value or operand. Operators are used to perform specific mathematical and logical computations on operands. In other words, we can say that an operator operates the operands. In JavaScript operators are used for compare values, perform arithmetic operations etc.
  • 2.
    There are various operators supportedby JavaScript: •Arithmetic Operators •Assignment Operators •Comparison Operators •Logical Operators •Ternary Operators •typeof Operator
  • 3.
    JavaScript Arithmetic Operators Operator Description + Addition -Subtraction * Multiplication ** Exponentiation (ES2016) // Old way const old = Math.pow(3, 7); // 2187// ✅ ES7 way const es7 = 3 ** 7; // 2187 / Division % Modulus (Division Remainder) ++ Increment -- Decrement
  • 4.
    Operator precedence - JavaScript |MDN (mozilla.org) •Next Video •Operator_Precedence