Month: December 2021

How to use setTimeout() in JavaScript?

This article shows you a complete understanding of the setTimeout() function and its uses in Javascript. The setTimeout() is a function available in the window object. The global setTimeout() method sets a timer that executes a function or specified piece of code after specified milliseconds. Let’s see a few examples of setTimeout() method below:- Example1 Example2 What is …

How to use setTimeout() in JavaScript? Read More »

Spinning wheel animation in JavaScript

This article shows you how to create a spinning or moving wheel animation in javascript. We are going to use simple HTML, CSS, and Javascript to develop this example. Here basically we will use the setInterval() method which is available in window Object of Javascript. The setInterval() method calls the callback function at the specified …

Spinning wheel animation in JavaScript Read More »

How to Build a Bouncing Ball using JavaScript?

This article shows you how to create a bouncing ball animation using javascript. Here we are going to use simple HTML, CSS, and Javascript to develop this example. Basically, we will use the setInterval() method of Javascript available in the window Object. The setInterval() method calls the callback function at the specified interval time. The setInterval() …

How to Build a Bouncing Ball using JavaScript? Read More »

Traffic signal light using Javascript

In this article, you will see the creation of a Traffic signal light using Javascript. Traffic lights, traffic signals, stoplights are signaling devices positioned at road intersections, pedestrian crossings, and other locations to control the flows of traffic. To develop this application, we will use simple HTML, CSS, and Javascript. Basically, we are going to …

Traffic signal light using Javascript Read More »

Accurate and easy stopwatch Timer in JavaScript

This article shows you how to create an Accurate stopwatch in Javascript. In another article, we have already created a simple stopwatch(See here). But there is a problem you might observe the result of Stopwatch is not accurate. The reason for the problem is we depend on setTimeout() method alone. The setTimeout() calls the callback …

Accurate and easy stopwatch Timer in JavaScript Read More »

How to create a Stopwatch in JavaScript?

In this article, you will see how to create a “Stopwatch” application. Creating a Stopwatch application is very simple in Javascript. There might be multiple solutions for it but here we will use Javascript setTimeout() function to develop this application. The setTimeout() is a javascript method available in the window object. The setTimeout() method calls a function …

How to create a Stopwatch in JavaScript? Read More »