√ (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
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!