You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The goal is to create a function of two inputs `number` and `power`, that "raises" the `number` up to `power` (ie multiplies `number` by itself `power` times).
12
+
13
+
**Examples**
14
+
15
+
```
16
+
numberToPower(3, 2) // -> 9 ( = 3 * 3 )
17
+
numberToPower(2, 3) // -> 8 ( = 2 * 2 * 2 )
18
+
numberToPower(10, 6) // -> 1000000
19
+
```
20
+
21
+
**Note:**`Math.pow` and some other `Math` functions like eval() and `**` are disabled.
0 commit comments