Data types and Operators

Primitive data types

  • Number
  • String
  • Boolean

Operators for number (Arithmetic operator)

  • Addition
  • Subtraction
  • Division to have the quotient: /
  • Multiplication: *
  • Modulus to have the remainder: %
  • Increment: ++
  • Decrement: —
  • Unary negation: -10

Operators for strings

  • Concatenation

Operators for boolean

  • AND
  • OR
  • XOR
  • NOT

Comparison operators:

  • Greater than
  • Less than
  • Equal or greater than
  • Equal or less than

=> Outcome will be boolean data type

Leave a Reply