Advertisements
Advertisements
Question
Predict the output in the following case:
Math.sqrt (−36)
One Line Answer
Solution
The square root of a negative number can't be determined. Hence, the output will be NaN.
shaalaa.com
Is there an error in this question or solution?