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

  • BMG Rentals Property Management

    BMG Rentals

    23 Mayıs 2011
  • Thehalopianoplayer

    Thehalopiano

    4 ŞUBAT 2011
  • UberFacts

    UberFacts

    26 EKİM 2013