From cded540a3bfcafad7f93b54ddc8a0b923d63d326 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 17 Jun 2023 22:29:50 +0300 Subject: [PATCH] note... Signed-off-by: Alex A. Naanou --- js-types-n-oop.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js-types-n-oop.js b/js-types-n-oop.js index 128d950..113ae86 100755 --- a/js-types-n-oop.js +++ b/js-types-n-oop.js @@ -131,6 +131,12 @@ typeof('meaning of life') // -> 'string' +// Note that this has a small "inconsistency" that can be used to check +// if a variable is defined. + + typeof(unknown_variable) // -> 'undefined' + + // Objects // -------