Category: Advanced JavaScript

Recent Post

How to read and display a PDF using JavaScript

The native FileReader API can be used to read a PDF and create a URL to its contents.

Save data to the browser with localStorage and sessionStorage

localStorage and sessionStorage objects allow you to store data from to user's browser.

map() vs forEach()

The map() and forEach() methods both iterate through arrays, but are not interchangeable.

Understanding JavaScript closures with simple examples

A JavaScript closure is a function that has its own protected, 'private' variables.

A very simple introduction to JavaScript modules

Learn how to better organise code using reusable JavaScript modules.

Filter an existing array to make a new one using filter()

Create a new array including only certain elements from an existing array using filter()

Make array calculations with the reduce() method

Reduce the values of an array to a single number with reduce()

Spreading…with the JavaScript spread operator

Using the spread operator (...), we can easily capture iterable elements and use them elsewhere.