AmitDiwan has Published 10744 Articles

How to add delay in a loop in JavaScript?

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 15:20:32

5K+ Views

Loops are used in JavaScript to repeat actions or iterate over a piece of data. With the aid of various techniques, we can add a delay between each iteration of the loop in order to regulate the speed of execution or produce particular temporal effects. This article will teach you ... Read More

Program to check/uncheck checkboxes using JavaScript

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 15:14:47

522 Views

We will learn how to check or uncheck checkboxes in javascript in this article, and how we can use it to allow users to make multiple selections on the web page Checboxes are one of the most used HTML elements in forms and user interfaces that allow users to pick ... Read More

How to toggle a boolean using JavaScript?

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 15:08:11

6K+ Views

In this tutorial, we will learn how to toggle a boolean value in javascript. In addition to this, we will also learn how we can use it for various web application features that require toggling a certain piece of state or value. Toggling a boolean in JavaScript entails altering its ... Read More

Creating auto-resize text area using JavaScript

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 15:05:39

949 Views

In this post, we are going to learn how to set up an auto−size text area in JavaScript. This text area will be able to change its height automatically depending on the content within it. Auto−size text in JavaScript is a helpful feature that can be used to edit multiple ... Read More

Location protocol Property in JavaScript

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 15:03:36

229 Views

This article will teach us how to use the Javascript location protocol properties to implement the web application's protocol. The read−only location.protocol property in javascript returns the protocol specified in the current webpage's URL. It offers details on the URL's protocol, including "http:", "https:", "file:", etc. Common protocol values that ... Read More

PreventDefault( ) vs Return false in JavaScript?

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 14:59:37

3K+ Views

In this post, we will discover how to use javascript's preventDefault and return false functions to override an event's default behaviour. The two most popular JavaScript methods for stopping an event's default behaviour are preventDefault() and return false. Let’s understand both of the concepts below − preventDefault() ... Read More

Explain focus events in JavaScript

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 14:46:06

1K+ Views

The focus of items on a web page can be determined via focus events, which we will learn about in this article. The numerous browser−provided events that are triggered when an HTML element gains or loses attention are known as focus events in JavaScript. These occasions can be utilised in ... Read More

The lastIndex property in JavaScript

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 14:28:09

126 Views

In this tutorial, we will learn about the lastIndex property in javascript. In addition to this, we will also learn about how we can use it to manage matches within a string The lastIndex property is a property given by regex objects in JavaScript. It represents the index at which ... Read More

What are JavaScript symbols?

AmitDiwan

AmitDiwan

Updated on 16-Aug-2023 14:24:58

730 Views

A symbol in JavaScript is a primitive data type, introduced in ES6 version update, that represents an immutable and unique identifier. Unlike other primitive types like strings, booleans, numbers, etc, symbols are guaranteed to be unique. This implies that even if two symbols have the same content, they are going ... Read More

Average with the Reduce Method in JavaScript

AmitDiwan

AmitDiwan

Updated on 11-Aug-2023 16:14:19

1K+ Views

In the given problem statement, our aim is to get the average of all the items with the help of the reduce method of Javascript. So for doing this task we will create a function and give an array as a parameter. Understanding the problem statement We ... Read More

Advertisements