Category: FAQs

Recent Post

How to copy text to the clipboard (and read it) in JavaScript

How to copy text content to a user's clipboard.

Load another JavaScript file from within a JavaScript file

Dynamically load another JavaScript file from within a JavaScript file.

Using the async and defer script tag attributes

Learn how script tags with the async or defer attributes are processed.

All seven differences between var, let and const in JavaScript

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

Page event listeners: DOMContentLoaded, load, beforeunload and unload

Sometimes we want some code to run only when a page has reached a certain state of loading (e.g. the

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.

How to open a new browser window from JavaScript

Use the open() method on the window object to open a new window in the browser.

innerText vs textContent in JavaScript

Learn the difference between innerText and textContent!