how to check if data is number javascript code example
Example: javascript check if variable is number
function isNumber(n) {
return !isNaN(parseFloat(n)) && !isNaN(n - 0);
}
function isNumber(n) {
return !isNaN(parseFloat(n)) && !isNaN(n - 0);
}