JavaScript Math.sqrt()
JavaScript Math.sqrt()
The Math.sqrt() method is used to return the square root of a number.
Syntax:-
Its syntax is:- Math.sqrt(x)
Return:-
Its return is:- number
Further Explanation:-
Parameter | Description |
---|---|
x | Required. The number. |