Skip to content

Commit 2e56401

Browse files
committed
fix: fix spelling errors
1 parent 8ca0efc commit 2e56401

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Maths/SquareRootLogarithmic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const squareRootLogarithmic = (num) => {
1919
if (typeof num !== 'number') {
2020
throw new Error('Input data must be numbers')
2121
}
22-
let ans = 0
22+
let answer = 0
2323
let sqrt = 0
2424
let e = num
2525

@@ -29,13 +29,13 @@ const squareRootLogarithmic = (num) => {
2929
return mid
3030
} else if (mid * mid < num) {
3131
sqrt = mid + 1
32-
ans = mid
32+
answer = mid
3333
} else {
3434
e = mid - 1
3535
}
3636
}
3737

38-
return ans
38+
return answer
3939
}
4040

4141
export { squareRootLogarithmic }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy