/

HTML / CSS / JavaScript Tutorial

JavaScript Math method: sqrt()

[this page | pdf | back links]

The sqrt() method (of the Math object) returns the square root of a real (non-negative) number.

 

It has the following syntax with the following parameters:

 

Math.sqrt(x)

 

Parameter

Required / Optional

Description

x

Required

Input parameter

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Numbers and Math


Desktop view | Switch to Mobile