JavaScript - Proprietà matematica SQRT2
Descrizione
Restituisce la radice quadrata di 2 che è approssimativamente 1,414.
Sintassi
La sua sintassi è la seguente:
Math.SQRT2Esempio
Prova il seguente programma di esempio.
<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>Produzione
Property Value is : 1.4142135623730951