SORU
16 NİSAN 2010, Cuma


Nasıl bir numara NaN olup olmadığını kontrol edin JavaScript musunuz?

Sadece Firefox'un JavaScript konsolunda çalışıyorum, ama aşağıdaki ifadelerden hiçbiri doğru dönüş:

parseFloat('geoff') == NaN;

parseFloat('geoff') == Number.NaN;

CEVAP
16 NİSAN 2010, Cuma


Bu kodu deneyin:

isNaN(parseFloat("geoff"))

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Epic Tutorials for iPhone, iPad and iOS

    Epic Tutoria

    18 EYLÜL 2011
  • TastyTuts | Creative video tutorials by Gareth David

    TastyTuts |

    6 Temmuz 2011
  • TROPFEST

    TROPFEST

    27 Mart 2007