math.sqrt() in javascript

차노·2023년 7월 28일
0

In JavaScript, The Math.sqrt() method is useful for finding the square root of number. It takes a variable as a parameter and returns the square root value if the variable is a positive number. Otherwise, if the variable is a negative number or a non-numeric value, then it returns NaN which denotes "Not a Number".

0개의 댓글