var stringa = "4540464";

if (isNaN(stringa)) {
// non è un numero
}
else {
// è un numero
}