Category: FAQs

Recent Post

Automated title capitalization with JavaScript

How to create a title capitalization function in JavaScript.

Comparing dates in JavaScript

Dates that are stored in Date objects can be compared or sorted via their Unix timestamp.

Create a timestamp in JavaScript

The in-built Date() method can generate an accurate UNIX timestamp.

Pass data from one HTML page to another

You can make data persistent across pages by accessing the Web Storage API.

What is Vanilla JavaScript?

Vanilla JavaScript: The best JavaScript framework of all.

How to get the length of an object in JavaScript

Unlike arrays and strings, objects don't have a length property to query.

How to create a universally unique identifier (UUID) in JavaScript

Easily generate UUIDs in standard format using the Web Crypto API.

How to wait until an element exists in JavaScript

Wait until an element exists to do something in JavaScript using the MutationObserver API.

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().