JavaScript Map and Set: The Data Structures You Should Be Using Instead of Objects and Arrays
Learn when to use JavaScript Map and Set instead of Object and Array. Includes performance benchmarks, real code examples, and clear trade-offs.
6 articles
Learn when to use JavaScript Map and Set instead of Object and Array. Includes performance benchmarks, real code examples, and clear trade-offs.
Learn JavaScript destructuring with real before/after examples. Covers array destructuring, object destructuring, default values, and function parameters.
A flow diagram showing a source array [1, 2, 3] being unpacked by the ... spread syntax into three individual amber-coloured elements, which then merg
What JavaScript does step by step when you call a function with new: object creation, prototype linking, binding this, and what goes wrong without new.
How this works in JavaScript functions and objects, and how call(), apply() and bind() let you control it, with a side-by-side comparison and exercises.
JavaScript objects from the ground up: key-value pairs, creating objects, reading, updating and deleting properties, and looping through keys.