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".