JavaScript syntax: Difference between revisions

Content deleted Content added
Line 213:
<syntaxhighlight lang="javascript">
console.log(0.2 + 0.1 == 0.3); // displays true as per ECMASCRIPT 6 Specifications
console.log(0.94 - 0.01); // displays 0.92999999999999999399999999999999
</syntaxhighlight>