From f62a7cf521b44c169d685afe87a997888d57189a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 5 Aug 2023 18:56:56 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- js-types-n-oop.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js-types-n-oop.js b/js-types-n-oop.js index c387a35..cfbdf41 100755 --- a/js-types-n-oop.js +++ b/js-types-n-oop.js @@ -225,9 +225,10 @@ x == null // -> true y == null // -> true -// Strict comparisons also work but unless explicitly required they -// should be avoided in favor of the non-strict and more flexible -// comparisons shown above: +// Strict comparisons also work but unless it explicitly required to +// differentiate between null and undefined (which is either a rare case +// or a sign of bad design) they should be avoided in favor of the +// non-strict and more flexible comparisons shown above: x === null // -> true y === undefined // -> true