Skip to main content

Tell about JS Operators

Most useful operators:

  • Arithmetic operators: +, -, *, /
  • Assignment operators: =, +=, -=, \*=, /=
  • Logical operators: &&, ||, !, ??, ternary ? true : false
  • Logical Assignment operators: &&=, ||=, ??=
  • Comparison operators: ==(=), !=(=)
  • Others: in, delete, typeof, instanceof, void
  • Also there are binary operators