---
title: "Discussion on \"Lesson 53: Mastering JavaScript setTimeout and setInterval with challenges!\" | Hashnode"
description: "Discussion on \"Lesson 53: Mastering JavaScript setTimeout and setInterval with challenges!\". setTimeout(fn, delay) → Runs fn once after delay milliseconds.\n\nsetInterval(fn, delay) → Runs fn repeatedly, every delay milliseconds.\n\n\nBoth are asynchronous and macrotask-based, meaning they are queued after the current synchronous code and all mic..."
url: "https://hashnode.com/posts/lesson-51-mastering-javascript-settimeout-and-setinterval-with-challenges/684a523cfde18bbfe8a09ee5"
---

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

Discussion

# [Lesson 53: Mastering JavaScript setTimeout and setInterval with challenges!](https://javascript-day-1.hashnode.dev/lesson-51-mastering-javascript-settimeout-and-setinterval-with-challenges?utm_source=hashnode&utm_medium=feed)

setTimeout(fn, delay) → Runs fn once after delay milliseconds. setInterval(fn, delay) → Runs fn repeatedly, every delay milliseconds. Both are asynchronous and macrotask-based, meaning they are queued after the current synchronous code and all mic...

Jun 12, 2025 · 5 min read · javascript-day-1.hashnode.dev  
Read the article

-   [#settimeout-vs-setinterval](https://hashnode.com/tag/settimeout-vs-setinterval)

## Written by

[manoj ymk](https://hashnode.com/@manoj-ymk)

@manoj-ymk

  
[View profile](https://hashnode.com/@manoj-ymk)

“Daily Dev Notes — For You and Future Me”

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
