Home » JavaScript Tutorial

Math.SQRT1_2 Property with Example in JavaScript

JavaScript | Math.SQRT1_2 Property: Here, we are going to learn about the PI Property of Math class in JavaScript with Examples.
Submitted by Shivang Yadav, on February 03, 2020

JavaScript | Math.SQRT1_2 Property

Math.SQRT1_2 is a property in math library of JavaScript that is used to find the value of square root of ½. It is generally used to solve problems related to circular figures.

Syntax:

    Math.SQRT1_2

Parameter(s):

  • N/A

Return value:

The return type of this method is number, it returns the value of SQRT1_2.

Browser support: Chrome, Internet explorer, Mozilla, Safari, Opera mini.

Example 1:

console.log(Math.SQRT1_2);

Output

0.7071067811865476

Example 2: Invalid values

console.log(Math.SQRT1_2("Javascript"));

Output

Uncaught TypeError: Math.SQRT1_2 is not a function
    at <anonymous>:1:18





Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.