Learn the language of the web.

Recent Post

Map Live User Location using Leaflet.js

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

Random Image with JavaScript

You can use JavaScript to display a random image, both on page load and when a user clicks to get ano

QR Code Scanner with Html5-QRCode.js

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

How to Schedule Tasks in Node.js

You can schedule tasks in Node.js using the node-schedule 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.

Build a Visitor Counter with JavaScript & Node.js

The counter tracks visits and pageviews independently with a simple backend.

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!