I have a confusion in how NaN works. I have executed isNaN(undefined) it returned true . But if I will use Number.isNaN(undefined) it
isNaN(undefined)
true
Number.isNaN(undefined)
In shortly,
isNaN()
will check if the convert of value to Number (type) are failed
For example'abc'
Number.isNaN()
will check if the given value type is Number but not valid number
For example: 'bb'/33