Prince Varshney

Prince Varshney

22 Articles Published

Articles by Prince Varshney

Page 3 of 3

How to delay a JavaScript function call using JavaScript?

Prince Varshney
Prince Varshney
Updated on 15-Mar-2026 97K+ Views

In this tutorial, we are going to learn how can we delay a function in JavaScript. Whenever we want to call a function after a specified amount of time than we use the delay function in JavaScript. To provide delay in JavaScript function we use a global window object named as setTimeout(). This function allows us to provide a specific delay before executing a function. The setTimeout() method mainly requires two arguments: the function which we need to execute with some delay and the time (in milliseconds) for which we want to delay the function. Syntax ...

Read More

How to delete a getter using the delete operator in JavaScript?

Prince Varshney
Prince Varshney
Updated on 15-Mar-2026 1K+ Views

In this tutorial, we are going to learn how we can delete a getter function using the delete operator in JavaScript. Getter functions are used to get the property of an object and bind the property with the getter function i.e., whenever the property is called the getter function will also be called with it. You can only have one getter or setter per name on an object as we cannot create more than two getters using the same name in JavaScript. To delete a getter function in JavaScript we use the delete operator which uses the keyword "delete". ...

Read More
Showing 21–22 of 22 articles
« Prev 1 2 3 Next »
Advertisements