Learn the language of the web.

Recent Post

The right way to generate a random number in JavaScript

In JavaScript, you can generate a weakly random number quickly or a strongly random number slowly.

Print only the content of a webpage using CSS and JavaScript

Send an entire web page (or only part of it) for printing using window.print().

How to call a function with a delay in JavaScript

Learn how you can delay a function call using setTimeout() – and cancel one you've already set.

How to redirect to another web page using JavaScript

How to send a user to another page immediately upon page load or with a countdown delay.

How to run JavaScript promises in parallel

JavaScript promises can be run in parallel and results handled efficiently using various methods.

How to print a JavaScript array to the DOM

Learn how to print a JavaScript array to the DOM in readable format.

Web scraping in NodeJS with Puppeteer

Learn how to scrape data from web pages.

Check if a HTML input element contains (no) user input

How to check if a user has provided input to a HTML input element.

Understanding JavaScript closures with simple examples

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

How to sort an array of objects by the value of a property in JavaScript

Learn how to sort an array of objects by the value of a property.