According to this code
function sayHi(myAge) {
"use strict";
if (isNaN(myAge)) {
return "Ture";
} else {
return "False";
}
}
sayHi("12");
isNan() return false, Why? "12" is not a number.
Because When I do this
var myAge = "12";
alert(myAge === 12);
it will return false, because "12" is a string but 12 a number.