se Number(valore) restituisce NaN, valore non è un numero. per farlo diventare numero, parseInt() o parseFloat()