### Javascript Math library functions that return NaN

Posted:

**Sun Oct 20, 2019 2:39 am**Generally, Math functions that are given non-numeric arguments will return NaN.
The square root of a negative number returns

Code: Select all

`Math.floor("a")`

**NaN**, because**Math.sqrt**does not support imaginary or complex numbers.Code: Select all

`Math.sqrt(-1)`