I'm learning Javascript mechanics and I believe I just stumbled across a bug with isNaN()
.
Here is the test code.
var x = "1000";
Answer = isNaN(x);
console.log(Answer);
The console log returns "false" which indicates that Javascript looks at "1000" as a number. I thought that anything inside " "
was considered a string. Evidently not always. If I'm wrong maybe somebody has some insight that can set me straight.