Add simple example of isNaN()#32
Add simple example of isNaN()#32ManuelOviedo wants to merge 1 commit intoknaxus:masterfrom ManuelOviedo:isNaN
Conversation
TheSTL
left a comment
There was a problem hiding this comment.
Hello @ManuelOviedo ,
We need native implementation of isNan function.
There's no prototype of isNaN. That property comes from ECMAScript convention for evaluate if a given value is NaN, if you get to the MDN links there are some links to its own ECMAScript related articles. |
|
Can you write a program which simple take a string as an input and check if its a number or not. |
I think you missunderstood the purpose of that function. isNaN checks for a value if it's NOT a number and i guess my example is way too clear: Number.prototype.isNaN = function(testValue){ |
|
Implementation should be done without using in-build functions or specifically don't use isNaN function, or parseInt type of functions |
#31