← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
✕ Clear A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
async / await in JavaScript ES2017 🧠 4
async functions always return a Promise; await pauses execution inside an async function until a Promise settles — giving asynchronous code the readability of synchronous code without blocking the event loop.
3mo ago JavaScript intermediate
Array.flat() & Array.flatMap() ES2019 🧠 1
Array.flat(depth) flattens nested arrays; Array.flatMap() maps then flattens one level — more efficient than map().flat() and great for expanding items.
3mo ago JavaScript beginner
Accidental Object Mutation Bugs ES2015
Objects and arrays are passed by reference in JS — mutating a function parameter or array element mutates the original, causing subtle cross-component state bugs.
3mo ago JavaScript intermediate
Async Error Handling (try/catch + Promise) ES2017 🧠 1
Errors in async functions require try/catch or .catch() — a rejected Promise that's not caught becomes an unhandledRejection that crashes Node or shows a console warning in browsers.
3mo ago JavaScript intermediate
AbortController — Cancellable Fetch ES2017
AbortController cancels in-flight fetch requests — essential for search-as-you-type, tab switching, and preventing race conditions in PHP API calls.
3mo ago JavaScript intermediate
AJAX Patterns for PHP Backends ES2017 🧠 1
Patterns for communicating with PHP backends via fetch — JSON APIs, CSRF tokens, error handling, and response parsing.
3mo ago JavaScript intermediate
Axios — HTTP Client for PHP APIs ES2015 🧠 2
Axios is a promise-based HTTP client with interceptors, automatic JSON parsing, and CSRF token injection — common in Laravel and Symfony frontends.
3mo ago JavaScript intermediate
Diagram: async/await async/await ES2017 🧠 1
Syntactic sugar over Promises — async functions always return a Promise; await pauses execution until the awaited Promise settles.
3mo ago JavaScript intermediate
✓ schema.org compliant