public/subjects/elementary/README.md

437 B

Elementary

Instructions

Create 3 functions which each take (a, b) as arguments:

  • multiply that acts like the * operator, without using it.
  • divide that acts like the integer division operator /, without using it.
  • modulo that acts like the % operator, without using it.

Code provided

The provided code will be added to your solution, and does not need to be submitted.

Math.imul = undefined