check if is a number type js 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);
}