Articles with the tag #tutorial:
How to format numbers
2021-02-28
The native Intl.NumberFormat API lets you format numbers for specific languages without any external dependencies. …read more
Format "5 days ago" localized relative date strings in a few lines with native JavaScript
2021-02-27
The native Intl.RelativeTimeFormat API can generate nicely formatted relative date/time strings without any external dependencies. …read more
How to extract pdf data with PDF.js
2021-02-24
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. …read more
Lets code a plain JavaScript notification queue using private fields and methods
2020-09-18
Defining easy-to-use APIs can be tricky, a good starting point is to keep a small exposed surface. Now as private fields are becoming available, let try them out. …read more
How to use lookahead and lookbehind RegExp in JavaScript
2020-09-15
Sometimes you want to ensure that a RegExp pattern starts immediately after a specific string but you don't want to include those characters in the match. In these cases, a lookbehind expression comes in handy. …read more
Scaling values between two ranges
2020-09-13
In some cases, you have one type of value with a specific range and you want to scale them proportionally into a new range. …read more
How to deprecate features in your API before making breaking changes
2020-09-13
When creating APIs that external parties depend on you will soon realize the need to be careful about making breaking changes to that API as even a single renamed property/function might cause existing code using your API to fail. …read more