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 <nethleen@gmail.com> Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com> Co-authored-by: Ilenia <nethleen@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ce4be17660
commit
92778f1b2f
@ -21,7 +21,7 @@ console.log(typeof {});
|
|||||||
|
|
||||||
In order, the console will display the strings `string`, `number`, `object`, and `object`.
|
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--
|
# --instructions--
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user