Search
Lessons (6)
- Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor
… JavaScript has the Iterator pattern built in : anything with [Symbol.iterator] works with for…of , spread and destructuring …
- What Are Design Patterns?
… b) = a - b) Strategy for (const x of iterable) Iterator new Proxy(obj, handler) Proxy A React Higher …
- Arrays & Strings
… arr.length - 1 . - Mutating while iterating: removing items inside forEach skips elements. Iterate backwards or use filter . - sort …
- How Browsers Render a Page
… forces layout on every iteration for (const box of boxes) { box.style.width = container.offsetWidth / 2 + "px"; } // ✅ Read …
- JavaScript Essentials: Event Loop, Closures & this
… each iteration gets its own i for (let i = 0; i < 3; i++) setTimeout(() = console.log(i), 100 …
- Choosing an Architecture
… top to bottom Feature-heavy apps, CQRS, fast iteration Duplication without a shared domain System shape Style Core …