JavaScript math sqrt() method

The JavaScript math sqrt() method is used to get the square root of a number.
Syntax:

Math.sqrt(n)

Parameters
n: It represents the number whose square root have to be get.

Returns
Square root value of a number.

Example

<!DOCTYPE html>
<html>
<body>
<script>  
document.writeln(Math.sqrt(625));  
</script>  
</body>
</html>

Output

25