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 one quote ('') or two quotes ("") , the result is always false
.
How come one quote or double quotes are considered a valid number ?