JavaScript(JS) math method - sqrt

The sqrt method in JavaScript's Math object returns the positive square root of a number. The sqrt method takes one argument, which is the number to find the square root of.

Here's an example usage:

refer to‮itfigi:‬dea.com
const num = 25;
const squareRoot = Math.sqrt(num);
console.log(squareRoot); // 5

In the above example, the Math.sqrt method is used to calculate the positive square root of the number 25. The result, which is 5, is then logged to the console.