"123" is type of string in JavaScript
console.log(typeof("123"));
It returns string ok
isNaN() is method that verifies that given number is NaN (not a number) or not.
In this method if we pass argument as number then we get false because it is a number and if we pass other than number like string so we get true.
Here the problem is "123" is type of string means it is not number, and
isNaN("123") method should return true, so why it is returning false?
Is it bug in JavaScript?