這將返回2的平方根大約是 1.414.
Math.SQRT2
<html> <head> <title>JavaScript Math SQRT2 Property</title> </head> <body> <script type="text/javascript"> var property_value = Math.SQRT2 document.write("Property Value is : " + property_value); </script> </body> </html>
這將產生以下結果:
Property Value is : 1.4142135623730951