From 92778f1b2f5a4b70162fd1d7a837e100d4e54af0 Mon Sep 17 00:00:00 2001 From: Madhu Sudhan Reddy Vinta <90919727+ls-madhu@users.noreply.github.com> Date: Thu, 17 Feb 2022 00:44:12 +0530 Subject: [PATCH] Bugfix in typeof lesson in Javascript debugging (#45118) * Local scope and functions: Make the example less confusing * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/local-scope-and-functions.md Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> * Fix bug in typeof lesson in debugging javascript * Update curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable.md Co-authored-by: Ilenia Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> Co-authored-by: Ilenia --- .../debugging/use-typeof-to-check-the-type-of-a-variable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable.md index 866916b9b8..f343e3a51b 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-typeof-to-check-the-type-of-a-variable.md @@ -21,7 +21,7 @@ console.log(typeof {}); In order, the console will display the strings `string`, `number`, `object`, and `object`. -JavaScript recognizes six primitive (immutable) data types: `Boolean`, `Null`, `Undefined`, `Number`, `String`, and `Symbol` (new with ES6) and one type for mutable items: `Object`. Note that in JavaScript, arrays are technically a type of object. +JavaScript recognizes seven primitive (immutable) data types: `Boolean`, `Null`, `Undefined`, `Number`, `String`, `Symbol` (new with ES6), and `BigInt` (new with ES2020), and one type for mutable items: `Object`. Note that in JavaScript, arrays are technically a type of object. # --instructions--