|
|
|
@ -2,17 +2,15 @@
|
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
Create 3 functions: |
|
|
|
|
Create 3 functions which each take `(a, b)` as arguments: |
|
|
|
|
|
|
|
|
|
- `multiply` that act like the `*` operator without using it |
|
|
|
|
- `divide` that do an integer division without using `/` |
|
|
|
|
- `modulo` that act like the `%` operator without using it |
|
|
|
|
|
|
|
|
|
> functions should have (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 |
|
|
|
|
|
|
|
|
|
> all code provided will be added to your solution and doesn't need to be submited. |
|
|
|
|
> The provided code will be added to your solution, and does not need to be submitted. |
|
|
|
|
|
|
|
|
|
```js |
|
|
|
|
Math.imul = undefined |
|
|
|
|