From 488e8504a7ba27ecda2cb63b6ef4140a7415cb68 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 17 Jan 2018 14:13:46 +0100 Subject: [PATCH 1/3] Remove quotes around equation sign --- 1-js/02-first-steps/08-comparison/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/08-comparison/article.md b/1-js/02-first-steps/08-comparison/article.md index ed0034fe..bf811862 100644 --- a/1-js/02-first-steps/08-comparison/article.md +++ b/1-js/02-first-steps/08-comparison/article.md @@ -4,7 +4,7 @@ Many comparison operators we know from maths: - Greater/less than: a > b, a < b. - Greater/less than or equals: a >= b, a <= b. -- Equality check is written as `a == b` (please note the double equation sign `'='`. A single symbol `a = b` would mean an assignment). +- Equality check is written as `a == b` (please note the double equation sign `=`. A single symbol `a = b` would mean an assignment). - Not equals. In maths the notation is , in JavaScript it's written as an assignment with an exclamation sign before it: a != b. [cut] From 2a3c6bc1d1d4699dc1b327119979754217c9515c Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 17 Jan 2018 14:23:20 +0100 Subject: [PATCH 2/3] Remove quotes around equality operator --- 1-js/02-first-steps/08-comparison/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/08-comparison/article.md b/1-js/02-first-steps/08-comparison/article.md index bf811862..f02dc447 100644 --- a/1-js/02-first-steps/08-comparison/article.md +++ b/1-js/02-first-steps/08-comparison/article.md @@ -108,7 +108,7 @@ From JavaScript's standpoint that's quite normal. An equality check converts usi ## Strict equality -A regular equality check `"=="` has a problem. It cannot differ `0` from `false`: +A regular equality check `==` has a problem. It cannot differ `0` from `false`: ```js run alert( 0 == false ); // true From 4b4c65abebaf1ccc44f70db4327f71fa6dcbb44b Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Wed, 17 Jan 2018 14:43:42 +0100 Subject: [PATCH 3/3] Typos --- 1-js/02-first-steps/08-comparison/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/08-comparison/article.md b/1-js/02-first-steps/08-comparison/article.md index f02dc447..c213c346 100644 --- a/1-js/02-first-steps/08-comparison/article.md +++ b/1-js/02-first-steps/08-comparison/article.md @@ -146,7 +146,7 @@ There's a non-intuitive behavior when `null` or `undefined` are compared with ot For a strict equality check `===` -: These values are different, because each of them belong to a separate type of it's own. +: These values are different, because each of them belongs to a separate type of its own. ```js run alert( null === undefined ); // false