---
title: "Discussion on \"setTimeout() vs setInterval() in JavaScript\" | Hashnode"
description: "Discussion on \"setTimeout() vs setInterval() in JavaScript\". Let's look at the difference between setTimeout() and setInterval() functions in JS."
url: "https://hashnode.com/posts/settimeout-vs-setinterval-in-javascript/6320a9775483096daa0a883c"
---

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

Discussion

# [setTimeout() vs setInterval() in JavaScript](https://shashankbhatgs.hashnode.dev/settimeout-vs-setinterval-in-javascript?utm_source=hashnode&utm_medium=feed)

Let's look at the difference between setTimeout() and setInterval() functions in JS.

Sep 13, 2022 · 3 min read · shashankbhatgs.hashnode.dev  
Read the article

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

## Written by

[Shashank Bhat G S](https://hashnode.com/@shashankbhatgs)

@shashankbhatgs · India

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

Undergraduate

Hi everyone👋 I am Shashank, and currently in my sophomore year, doing my undergraduate in India. I'm currently learning web development and DSA and share my journey here. Also, an open-source enthusiast and interested in DevOps and Blockchain I love to interact with the community and help each other out.

## Responses 1

Markdown supported · ⌘↵ to post

[Hasnain Makada](https://hashnode.com/@HasnainMakada)

[Dec 27, 2022](https://hashnode.com/posts/settimeout-vs-setinterval-in-javascript/6320a9775483096daa0a883c/comment/63ab3150f42b1f067f837f3d)

Good Explanation

[Shashank Bhat G S](https://hashnode.com/@shashankbhatgs)

[Dec 27, 2022](https://hashnode.com/posts/settimeout-vs-setinterval-in-javascript/6320a9775483096daa0a883c/comment/63ab3150f42b1f067f837f3d#reply-63ab33cdb1011ed9ec6d9299)

Thank you!
