javascript how to tell if a variable is nan code example Example: check if value is NaN Number.isNaN(123)