#JavaScript
28 posts
JavaScript Advanced #2 this Binding and Call Patterns
The four rules that decide this from the call style, what call/apply/bind mean, and how arrow functions break those rules.
JavaScript Advanced #1 Closures and Scope
How a function carries its environment — lexical scope, how closures work, and the practical patterns and pitfalls you'll meet.
JavaScript Intermediate #7 Working with JSON and Serialization
JSON.parse and stringify options, pitfalls with Date/special values/circular references, and using toJSON, reviver, and replacer.
JavaScript Intermediate #6 fetch API and Error Handling
fetch — modern JavaScript's standard network tool — from basic usage through headers, JSON, error handling, and AbortController.
JavaScript Intermediate #5 Optional Chaining and Nullish Coalescing
`?.` for safe deep-object access, `??` to clarify the falsy-vs-nullish difference, and assignment variants like `??=`.
JavaScript Intermediate #4 Destructuring and spread/rest in Depth
Destructuring and spread covered lightly in basics, taken further — nested patterns, parameter usage, common pitfalls and idioms.
JavaScript Intermediate #3 Iterators and Generators
From the iterable protocol that for...of follows, to building your own iterables, to expressing lazy sequences with generators.
JavaScript Intermediate #2 Async Intro — Promise and async/await
From the limits of callbacks to Promise's three states and the directness of async/await — JavaScript async covered start to finish.
JavaScript Intermediate #1 Classes
ES2015+ class syntax, getter/setter, static members, private fields (#), and static blocks — the full picture of modern JavaScript classes.
JavaScript Basics #7 Modules — import and export
The ES Modules system for splitting code across files — named export, default export, plus common pitfalls and recommended patterns.
JavaScript Basics #6 Strings and Template Literals
Common string methods, clean composition with template literals, and regex basics — search, replace, capture.
JavaScript Basics #5 Objects and Arrays
Objects and arrays — basic usage, common methods (map/filter/reduce), and modern syntax like spread and destructuring.