---
title: "Discussion on \"Using setTimeout in JavaScript\" | Hashnode"
description: "Discussion on \"Using setTimeout in JavaScript\". When working with JavaScript, there will be a point where you'll want to wait a certain amount of time to run a function.\nThis can be to animate something after a specific time, for instance.\nFor instance, in this copy text to clipboard script, we us..."
url: "https://hashnode.com/posts/using-settimeout-in-javascript/61f392c352c782474274956f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using setTimeout in JavaScript](https://h.daily-dev-tips.com/using-settimeout-in-javascript?utm_source=hashnode&utm_medium=feed)

When working with JavaScript, there will be a point where you'll want to wait a certain amount of time to run a function. This can be to animate something after a specific time, for instance. For instance, in this copy text to clipboard script, we us...

Jan 28, 2022 · 2 min read · h.daily-dev-tips.com  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#es6](https://hashnode.com/tag/es6)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

  
[View profile](https://hashnode.com/@dailydevtips)

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 1

Markdown supported · ⌘↵ to post

[Yashasvi Singh](https://hashnode.com/@aUnicornDev)

[Jan 28, 2022](https://hashnode.com/posts/using-settimeout-in-javascript/61f392c352c782474274956f/comment/61f42b746bb59d5767db3d7a)

This is awesome 🔥

Now everytime I need to explain setTimeout() to someone, I will redirect them here !!!

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Jan 29, 2022](https://hashnode.com/posts/using-settimeout-in-javascript/61f392c352c782474274956f/comment/61f42b746bb59d5767db3d7a#reply-61f4e38c4bea13573e62c744)

Nice! Glad you like the article so much Yaashasvi! 💖
