Question : check if input is a number javascript
Answered by : joo-neves
// Another option is typeof which return a string
if (typeof(val) === 'number') { // Guess what, it's a bloody number!
}
Source : | Last Update : Sat, 04 Jul 20
Answered by : joo-neves
// Another option is typeof which return a string
if (typeof(val) === 'number') { // Guess what, it's a bloody number!
}
Source : | Last Update : Sat, 04 Jul 20