JavaScript's parseInt, parseFloat, and Number constructors struggle with comma-separated number strings.
Tagged "JavaScript"
Node.js and JavaScript are a great option for scripting for the language features and the large ecosystem. Oh, and it's pretty fast too!
A drop-in replacement for Math.random that generates cryptographically strong random values
A write-up on the new star feature on seanmcp.com
How to make a custom web component with only a few lines of code
Writing a little helper function to grab the HTML of all children of a shallow wrapper in Enzyme
The missing "hello world" example to get up and running with remark
Although JS treats them like object, finding the methods of a class programmatically is trickier than I thought.
How to use URLSearchParams to parse any search parameters string like window.location.search
Since audio and video are native HTML elements, you can change the playing speed with a quick console script
TypeScript provides valuable features but complicate the development process. What are some alternatives that provide the features without the headache?
A sample POST with fetch for those of us who can never remember how.
Sidestep slicing and splicing and use Array's filter method for a no-hassle solution.
By calling your asynchronous functions before awaiting, you can save valuable time in your JavaScript programs
How to use Deno's standard library to read and parse data from a json file.
How to use Node.js's file system to read and parse data from a json file.
A brief journey into the dangerous world of user agent sniffing
Writing a script to read the package.json for you
Not as easy as we'd like it, but not as hard as it could be
Correcting my mental model
How to create a custom event listener for class names using the MutationObserver API
Using a console script to alter the content on a webpage
Using JavaScript's Math object to generate random numbers
Demystifying the inline if statement
Browse by tag or all articles.