Year: 2022

Recent Post

Baby Unicorns

Last updated: February 9, 2022. I’m baby unicorn flannel adaptogen, tousled waistcoat fingersta

Writing HTML in JavaScript made easy with template literals

With template literals, it is easy to write blocks of HTML in JavaScript.

The spread operator (the three dots of JavaScript) and its uses

The spread operator lists the contents of an iterable in a comma-separated list.

All seven differences between var, let and const in JavaScript

Learn the differences between the keywords var, let and const when declaring variables.

Lazy image and iframe loading using pure HTML

Just set the HTML 'loading' attribute to 'lazy' for images and iframes!

From JavaScript object or array to variables with destructuring assignment

Efficiently store property values and array elements in variables.

Page event listeners: DOMContentLoaded, load, beforeunload and unload

Last updated: February 14, 2022. Sometimes we want some code to run only when a page has reached a ce

The right way to clone an object in JavaScript

We investigate how to make a proper 'deep clone' of an object in JavaScript.

Using fetch to make GET, POST, PUT and DELETE requests

Learn how to make HTTP requests in plain JavaScript using it's in-built fetch method.

Higher-order array methods with simple examples: map, filter, sort and reduce

Use flexible higher-order array methods to help achieve your programming objectives.