Handling Null, Undefined and Zero Values in JavaScript
Explains how to correctly handle null, undefined, and zero values in JavaScript, covering falsy checks and the nullish coalescing operator.
Explains how to correctly handle null, undefined, and zero values in JavaScript, covering falsy checks and the nullish coalescing operator.
A technical guide on converting HTML definition lists (<dl>) to fieldset elements (<fieldset>) using JavaScript for consistent note styling in Markdown.
Learn how to pad strings in JavaScript using padStart() and padEnd() methods with practical examples like formatting time.
Learn how to use default parameters in JavaScript functions with examples and best practices.
Analyzes biases in developer surveys and data sources like State of JS, npm trends, and Stack Overflow to understand true developer sentiment.
Argues for migrating from Node.js Buffer to Uint8Array for better compatibility, security, and modern JavaScript practices.
A developer's technical build log for creating 'Thirteen Potions', a JavaScript game for the js13kGames competition using Phaser.
Introduces a lightweight HTML article format for web content, detailing how to implement it with R, Quarto, or other tools.
A guide on learning software development effectively, covering language choice, early practice with simple challenges, and building a todo app.
A tutorial on implementing tabbed interfaces (tabsets) in web pages using vanilla JavaScript and CSS, with support for Markdown and HTML.
A developer reflects on a decade-old JavaScript code snippet for toggling R code blocks, comparing jQuery to modern vanilla JS methods like querySelectorAll.
Explains the JavaScript Nullish Coalescing Operator (??), its syntax, and how it provides default values for null/undefined variables.
How to fix an undefined import error when calling an API at runtime in an Astro component by moving the import into the script tag.
Explores reactivity patterns in vanilla JavaScript, comparing them to frameworks like Vue and discussing when to use each approach.
Announcing zlFetch's support for FormData and its utilities for converting FormData to objects and query strings.
A guide explaining how the JavaScript modulo operator works, including its practical use case for creating circular arrays.
A guide explaining four different methods to create and work with multiline strings in JavaScript, including template literals and concatenation.
Learn the best way to get a month name from a JavaScript Date object using toLocaleString() instead of arrays or switch statements.
A developer recreates a research project using wireless earbuds' microphones to detect facial touch gestures and control UIs via machine learning in JavaScript.
A developer's pragmatic take on choosing between JavaScript and TypeScript for different project stages, based on personal experience with two large frontend projects.