From 90bc2e6e5cdea5b4ecc4b388005a7c4ddcc47f18 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 4 Aug 2023 16:03:49 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- js-types-n-oop.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js-types-n-oop.js b/js-types-n-oop.js index 69cc0d8..c387a35 100755 --- a/js-types-n-oop.js +++ b/js-types-n-oop.js @@ -226,7 +226,8 @@ y == null // -> true // Strict comparisons also work but unless explicitly required they -// should be avoided in favor of the non-strict comparison shown above: +// should be avoided in favor of the non-strict and more flexible +// comparisons shown above: x === null // -> true y === undefined // -> true @@ -264,7 +265,7 @@ {} instanceof Object // -> true // -// this essentially checks if the left oprtand is related to (i.e. in the +// this essentially checks if the left operand is related to (i.e. in the // inheritance chain of) the second operand's .prototype, or we can say // that it id "inherited" from the constructor. //