Polyfilling the Fetch API for Old Browsers and Node.js
Explains how to polyfill the Fetch API for older browsers and Node.js, covering polyfills vs. transpilers and Babel configuration.
Explains how to polyfill the Fetch API for older browsers and Node.js, covering polyfills vs. transpilers and Babel configuration.
A tutorial on extracting CSS translateX, translateY, and translateZ values from computed transform matrices using JavaScript.
A guide explaining how to access screen, browser window, and web page dimensions using JavaScript properties.
The author argues against using heavy JavaScript frameworks like Gatsby for blogs, advocating for simpler static site generators like Eleventy for better performance.
HASH is a free online platform for creating JavaScript simulations to model and understand complex real-world systems.
Lessons from refactoring a large JavaScript codebase to use optional chaining, including patterns to search for and pitfalls to avoid.
A developer shares personal preferences and best practices for working with JavaScript array methods, focusing on immutability and readability.
Explains why using window.addEventListener('load') is better than window.onload in JavaScript to avoid overwriting event handlers.
Explains three methods to check for property/key existence in JavaScript objects: hasOwnProperty(), the 'in' operator, and comparing with undefined.
Explains the difference between the Rest and Spread operators in JavaScript ES6, covering syntax and practical use cases.
A developer shares their process for creating custom ASCII art messages in the browser console using JavaScript and special characters.
A guide on mocking Axios HTTP calls in Jest tests without external packages, including code structure and coverage tips.
Learn the correct methods to compare objects in JavaScript, covering referential, shallow, and deep equality techniques.
An in-depth technical look at how the Mocha test runner works, from parsing to execution, based on the author's experience on the core team.
A critique of async/await implementation in programming languages, focusing on code duplication and proposing functional abstractions as an alternative.
An introduction to Web Workers, explaining how they enable multithreading in JavaScript to prevent UI blocking, with basic usage examples.
A developer shares initial observations and setup tips for Snowpack, a modern JavaScript build tool, highlighting its config order, mount scripts, and HMR capabilities.
Learn how to implement Lodash's countBy function in vanilla JavaScript using the reduce method to group and count objects by property.
Learn how to implement a groupBy function in vanilla JavaScript using the reduce method, without needing Lodash.
Learn two methods to replace all occurrences of a string in JavaScript: using regex with global flag and the newer replaceAll function.