Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.3 KB

File metadata and controls

24 lines (16 loc) · 1.3 KB

Find the Square Root

Provider Source Solutions
Codewars 56426b4e971f01fd2f00005b JavaScript

Create a Function that takes one parameter and returns its square root rounded to 5 decimal places. You are not allowed to use the Math.sqrt() or the Math.pow() methods.

Trailing zeros should be left out. For example

squareRoot(39) // => 6.245;

rather than

squareRoot(39) // => 6.24500;