Prova questo.

a = parseInt('dhhfhdh')
alert (isNaN(a));