JS Objects Dot Notation vs Bracket Notation
Learn when to use dot notation vs bracket notation in JavaScript. See the key differences, trade-offs, and real scenarios where each access style shines.
Master JavaScript from basics to advanced
Learn when to use dot notation vs bracket notation in JavaScript. See the key differences, trade-offs, and real scenarios where each access style shines.
Learn how Object.assign() copies properties between objects. Use it for merging configuration, cloning objects, and setting defaults, while avoiding the shallow copy trap.
Learn how to prevent memory leaks in JavaScript using WeakMap and WeakSet. See real patterns for DOM node tracking, caching, and private data that clean up automatically.
Learn event delegation in JavaScript: attach one listener to a parent instead of many to each child. Works for dynamically added elements and improves performance.
Microtasks and macrotasks are the two queue types that determine async callback order in JavaScript. Learn their differences and why Promise callbacks run before setTimeout.
V8 compiles JavaScript through a multi-tier pipeline: Ignition for fast startup and TurboFan for peak performance. Learn how parsing, bytecode, and JIT work together.
V8's internals include hidden classes, inline caching, and a generational garbage collector. Learn how these mechanisms make JavaScript execution fast.
Symbol is a unique, immutable primitive type in JavaScript. Learn what symbols are, why they exist, and how to use them for private property keys, well-known symbols, and metaprogramming.
An iterator is any object that defines a next() method returning {value, done}. Learn how JavaScript iteration works under the hood, and how to build custom iterators for any data structure.
The iterable protocol is the contract that lets any object work with for...of, spread, and destructuring. Learn how Symbol.iterator makes your data structures work with JavaScript's iteration syntax.
BigInt is JavaScript's primitive for arbitrarily large integers. Learn to create BigInts, perform operations, handle mixed-type rules, and use BigInt for precise math beyond Number's limits.
The Intl API formats dates, numbers, currencies, and lists for any locale without external libraries. Learn DateTimeFormat, NumberFormat, RelativeTimeFormat, and ListFormat with practical examples.