Skús:isNaN(num) // vráti True ak premenná neobsahuje platné číslofunction isNumeric(num){ return !isNaN(num)}