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

  • gsmaestro

    gsmaestro

    17 AĞUSTOS 2006
  • Need for Speed

    Need for Spe

    8 ŞUBAT 2006
  • Virtual Riot

    Virtual Riot

    19 Mayıs 2011