diff --git a/coffeescript/chapters/02_syntax.md b/coffeescript/chapters/02_syntax.md index fb28370..3a8ab44 100644 --- a/coffeescript/chapters/02_syntax.md +++ b/coffeescript/chapters/02_syntax.md @@ -217,7 +217,7 @@ As an alternative to `is not`, you can use `isnt`. if true isnt true alert "Opposite day!" -You may have noticed in the examples above, that CoffeeScript is converting `==` operators into `===` and `!=` into `!==`. 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. +You may have noticed in the examples above, that CoffeeScript is converting `==` operators into `===` and `!=` into `!==`. 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. ##String interpolation