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 8ca0efc commit 2e56401Copy full SHA for 2e56401
Maths/SquareRootLogarithmic.js
@@ -19,7 +19,7 @@ const squareRootLogarithmic = (num) => {
19
if (typeof num !== 'number') {
20
throw new Error('Input data must be numbers')
21
}
22
- let ans = 0
+ let answer = 0
23
let sqrt = 0
24
let e = num
25
@@ -29,13 +29,13 @@ const squareRootLogarithmic = (num) => {
29
return mid
30
} else if (mid * mid < num) {
31
sqrt = mid + 1
32
- ans = mid
+ answer = mid
33
} else {
34
e = mid - 1
35
36
37
38
- return ans
+ return answer
39
40
41
export { squareRootLogarithmic }
0 commit comments