---
title: "Discussion on \"The setTimeout() method in JavaScript\" | Hashnode"
description: "Discussion on \"The setTimeout() method in JavaScript\". If you want to run something once after a set time use setTimeout()\nSet Timeout\nsetTimeout() is a window method available to us. It takes two things:\n\nA callback function\nTime in milliseconds\n\nsetTimeout(() => {\n  console.log('1 second!');\n}, 1000);\n..."
url: "https://hashnode.com/posts/the-settimeout-method-in-javascript/5f97df8883b4c0275824b795"
---

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

Discussion

# [The setTimeout() method in JavaScript](https://davidbell.hashnode.dev/the-settimeout-method-in-javascript?utm_source=hashnode&utm_medium=feed)

If you want to run something once after a set time use setTimeout() Set Timeout setTimeout() is a window method available to us. It takes two things: A callback function Time in milliseconds setTimeout(() => { console.log('1 second!'); }, 1000); ...

Oct 27, 2020 · 2 min read · davidbell.hashnode.dev  
Updated Mar 18, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)

## Written by

[David Bell](https://hashnode.com/@davidbell)

@davidbell · Birmingham, England

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

Self taught developer, working with Nextjs, TypeScript, Graphql and React.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
