Arithmetic

Introduction

JavaScript has all the standard operators which are as follows.

  • a + b : addition
  • a - b : subtraction
  • a * b : multiplication
  • a / b : division
  • a % b : modulus (remainder)

The precedence rules are as expected. The assignment operator is =.