We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5198af8 commit 4f6fe19Copy full SHA for 4f6fe19
Maths/Pow.js
@@ -5,7 +5,7 @@
5
* @param {number} exponent
6
* @returns {number}
7
* @example - powLinear(2, 2) => 4 --> 2 * 2
8
- * @example - powLinear(3, 3) => 27 --> 3 * 3
+ * @example - powLinear(3, 3) => 27 --> 3 * 3 * 3
9
*/
10
const powLinear = (base, exponent) => {
11
if (exponent < 0) {
@@ -29,7 +29,7 @@ const powLinear = (base, exponent) => {
29
30
31
* @example - powFaster(2, 2) => 4 --> 2 * 2
32
- * @example - powFaster(3, 3) => 27 --> 3 * 3
+ * @example - powFaster(3, 3) => 27 --> 3 * 3 * 3
33
34
const powFaster = (base, exponent) => {
35
if (exponent < 2) { // explanation below - 1
0 commit comments