√ (1/2) = 0.707106
Return Values: It simply returns the value of the square root of 1/2, whose value is approximately 7071.
Below are examples of Math.SQRT1_2 method.
Example: It will find the value of the square root of 1/2 which is done with the help of this property. In mathematics, it needed a lot.
More codes for the above property are as follows:
Example 1: The value of the square root of 1/2 can be printed in the form of a function as shown below.
Example 2: Here we consider Math.SQRT1_2 is a function but in actuality, it is a property which is why the error as output is being shown.
Error: Math.SQRT1_2 is not a function
- Google Chrome 1 and above
- Internet Explorer 3 and above
- Firefox 1 and above
- Opera 3 and above
- Safari 1 and above