how to check for undefined for number in javascript code example Example: javascript check number against undefined javascript check number against undefined