TypeScript Operators

An operator defines some action that will be performed on operand. operand is the variable data or just value.

example:

1+2=3

  • 1,2,3, are operands
  • +, = are operators

There are several type of operators :

  • Arithmetic operators
  • Comparsion operator
  • Logical operators
  • Bitwise operators
  • Ternary/conditional operator
  • String operator
  • Type Operator
  • instanceof Operator

example code of all type of operators:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top