Why isNaN('') or isNaN(“”) is false (one quote or double quotes are considered a valid number)?

后端 未结 3 1564
傲寒
傲寒 2021-01-27 23:49

I need a built in function that checks if a variable contains a valid number in Javascript , following this link I\'ve tried to use is isNaN , however when I use on

3条回答
提交回复
热议问题