How could It be false? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How could It be false?

var xx = isNaN('string'); var yz = isNaN(5+5); if (xx==false){ alert(xx); } else{ alert(yz); }

15th Dec 2022, 11:13 AM
Sony
Sony - avatar
1 Antwort
0
isNaN('hello world'); // true Number.isNaN('hello world'); // false You have an extra tab; Second line
15th Dec 2022, 11:37 AM
Knight
Knight - avatar