Tag: Javascript

Recent Post

Add a new element to the DOM using JavaScript

You can insert HTML elements to the DOM dynamically using JavaScript.

Pass data from one HTML page to another

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

How to upload a file using the Fetch API

You can upload a file using the Fetch API as part of a FormData object or as a standalone file.

Create an upload progress bar with Axios

Using Axios, you can track the upload progress of a POST request to create a progress bar.

Resolve JavaScript promises sequentially

You can make JavaScript promises resolve by storing them in separate functions.

Adding a default parameter value to a function in JavaScript

A default parameter value is used if no argument is passed in when a function is called.

Wait for a function to finish before continuing in JavaScript

How to make JavaScript wait for a function to complete before executing another.

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.

Converting a number to a string with commas in JavaScript

How to print a number as a string with comma-formatting or other locale-specific styles.