RSSAmplifier

Blog

Writing JavaScript

A blog about writing JavaScript/ECMAScript and programming as close to the standards as possible.

writingjavascript.comRSS feed ↗10 posts

Latest posts

What are numeric separators?

When working with large numbers it can be hard to read them out, try to read this value for example:

JavaScript array methods and how to use them

Arrays are as central to JavaScript as in many other languages, in this article we will go through the most useful array methods along with creative usage examples.

How to build a Web Components app with Redux!

The flux pattern has proved useful for more complex applications. The Redux npm package has been used extensively in React applications for years but can also be used in similar ways with LitElement style web components.

How to format numbers

The native Intl.NumberFormat API lets you format numbers for specific languages without any external dependencies.

Format "5 days ago" localized relative date strings in a few lines with native JavaScript

The native Intl.RelativeTimeFormat API can generate nicely formatted relative date/time strings without any external dependencies.

Escaping your CSS selectors in the easiest way possible

When working a lot on dynamic Web Component apps I have often stumbled on cases where the element properties will be defined by the end-users. To prevent errors when selecting these elements they need to be properly escaped to work with any character.

How to extract pdf data with PDF.js

We live in a data-driven world, consistently transferring data from one location to another. In this brief tutorial, I will show you how to extract pdf content using PDF.js. This npm package will help you roll out custom pdf extraction logic or an interface to explore pdf data.

Use more ergonomic custom events

While we have CustomEvent for all of our events that need to carry data the need for the detail property nesting can feel a bit cumbersome.

10 great JavaScript tricks that will improve your productivity

These top tips and tricks will help you dramatically increase your productivity while coding in any JavaScript project.

Why should I start using Optional Chaining and Nullish Coalescing operators?

Gone are the days where you had to add incremental nullish (undefined or null) checks when fetching values in nested objects. Let's do more with less code.