concider the following code:
var postValue = "99";
var number = new Number(postValue); //also tried var number = parseInt(postValue);
if (isNaN(number)) {
alert('please enter a number');
}
How come isNan(number) in both cases is false?