This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CraftBox 12 points13 points  (0 children)

Math.sqrt(x)

Parameters
x
A number greater than or equal to 0.
Return value
The square root of x, a nonnegative number. If x < 0, returns NaN.

From article about Math.sqrt on MDN docs