Category: FAQs

Recent Post

Conditionally load a JavaScript file

By creating a new JavaScript file from scratch or reappend an existing one.

Read a File into JavaScript using FileReader

After reading a file, you can display it, edit it, post it to a server and download.

Get checked checkbox values only from HTML form with JavaScript

You'll want to push checkbox values into an array only if they are checked.

Map Live User Location using Leaflet.js

Get user coordinates using the HTML5 Geolocation API and map using Leaflet.js.

QR Code Scanner with Html5-QRCode.js

You can implement a QR code scanner using the Html5-QRCode library.

How to Remove Duplicate Objects from an Array

When deciding which method to choose, object type should be taken into account.

Check Total, Used and Remaining Space Available in localStorage

By pushing data into loca, it is possible to calculate total and available space.

How to Remove Falsy Values from an Array

How to remove falsy values or only some falsy values.

Natively deep copy a JavaScript object or array with structuredClone()

structuredClone() is a new native solution for deep copying JavaScript data objects.

Image URL to Blob in JavaScript

Let Fetch's response.blob() method do the hard work!