js chack if numberr code example
Example 1: javascript is number an integer
Number.isInteger(value)
//returns a Boolean
Example 2: check if input is a number javascript
// Another option is typeof which return a string
if (typeof(val) === 'number') {
// Guess what, it's a bloody number!
}