Skip to content

Commit

Permalink
Typo arcturo#57
Browse files Browse the repository at this point in the history
  • Loading branch information
abaran803 committed Oct 2, 2020
1 parent 68b529b commit 13696f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffeescript/02_syntax.html
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ <h2>Flow control</h2>
alert "Opposite day!"
</code></pre>

<p>You may have noticed in the examples above, that CoffeeScript is converting <code>==</code> operators into <code>===</code> and <code>!=</code> into <code>!==</code>. This is one of my favorite features to the language, and yet one of the most simple. What's the reasoning behind this? Well frankly JavaScript's type coercion is a bit odd, and its equality operator coerces types in order to compare them, leading to some confusing behaviors and the source of many bugs. There's a longer discussing on this topic in chapter 7.</p>
<p>You may have noticed in the examples above, that CoffeeScript is converting <code>==</code> operators into <code>===</code> and <code>!=</code> into <code>!==</code>. This is one of my favorite features to the language, and yet one of the most simple. What's the reasoning behind this? Well frankly JavaScript's type coercion is a bit odd, and its equality operator coerces types in order to compare them, leading to some confusing behaviors and the source of many bugs. There's a longer discussion on this topic in chapter 7.</p>

<h2>String interpolation</h2>

Expand Down

0 comments on commit 13696f4

Please sign in to comment.