Arithmetic operator - 01

JavaScript has some built-in arithmetic operators. JavaScript supports the following math operators…

  • Add: +
  • Subtract: -
  • Multiply : *
  • Divide: /
  • Remainder %,  sometimes call as modulo


Example:

const add = 10 + 20; // Result: 30
const subtract = 20 - 10; // Result: 10;
const multiply = 5 * 6; // Result: 30;
const divide = 30 / 6; // Result: 5
const remainder = 15 % 4; // Result: 3

Post a Comment

Previous Post Next Post