How could It be false? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
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