Operators in JavaScript

Operators in JavaScript

Operators are the symbols that are used to do some kind of operation on data. There are many different operators in JavaScript for doing different kinds of operations on some data. Following are some operators –

  • Arithmetic Operators
    These are used for performing arithmetic operations(like addition, subtraction, multiplication, division, etc. )
  • Assignment Operators
    These operators are used for assignment purposes(assigning values to the variables)
  • Comparison Operators
    As the name says, these operators are used for comparison(less than, greater than, equal to, etc.)
  • Logical Operators
    These operators are often used with logical values.
  • Bitwise Operators
    As the name suggests, these operators are used for bit-by-bit operations.