JavaScript syntax: Difference between revisions

Content deleted Content added
oops wrong month
No edit summary
Line 219:
 
<syntaxhighlight lang="javascript">
console.log(0.2 + 0.1 == 0.3); // displays truefalse as per ECMASCRIPT 6 Specifications
console.log(0.94 - 0.01); // displays 0.9299999999999999
</syntaxhighlight>
Line 275:
console.log(isNaN(NaN)); // true
var a = NaN;
console.log(a == ba); // false
var b = a;
console.log(a == b); // false
</syntaxhighlight>