From 3923e4d2c8791492bb83999ec7fa73cf450183c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= Date: Sun, 28 Apr 2019 19:28:58 +0900 Subject: [PATCH] const: Use === for comparison In "values and identity" paragraph, the operator for comparison is `===`. `==` was not introduced yet. --- manuscript/markdown/0.Functions/const.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manuscript/markdown/0.Functions/const.md b/manuscript/markdown/0.Functions/const.md index 1fb1215..05f90fd 100644 --- a/manuscript/markdown/0.Functions/const.md +++ b/manuscript/markdown/0.Functions/const.md @@ -421,7 +421,7 @@ By default, JavaScript permits us to *rebind* new values to names bound with a p if (n === 0) { return true; } - else if (n == 1) { + else if (n === 1) { return false; } else { @@ -439,7 +439,7 @@ The line `n = n - 2;` *rebinds* a new value to the name `n`. We will discuss thi if (n === 0) { return true; } - else if (n == 1) { + else if (n === 1) { return false; } else {