I have a text field that allows a user to enter their age. I am trying to do some client-side validation on this field with JavaScript. I have server-side validation already
use isNaN(n)
i.e.
if(isNaN(intValue))
in place of
if (intValue == Number.NaN)