---
title: "Discussion on \"JavaScript setInterval and setTimer\" | Hashnode"
description: "Discussion on \"JavaScript setInterval and setTimer\". These are both timers in JavaScript. For some reason I always used to get these two confused, even though there's a clue in the name as to which does which.\nsetInterval\nThis is used to do something repeatedly after a certain amount of time.\nsetInterv..."
url: "https://hashnode.com/posts/javascript-setinterval-and-settimer/61c999545fc5da184732742c"
---

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

Discussion

# [JavaScript setInterval and setTimer](https://blog.nicm42.me.uk/javascript-setinterval-and-settimer?utm_source=hashnode&utm_medium=feed)

These are both timers in JavaScript. For some reason I always used to get these two confused, even though there's a clue in the name as to which does which. setInterval This is used to do something repeatedly after a certain amount of time. setInterv...

Dec 27, 2021 · 2 min read · blog.nicm42.me.uk  
Read the article

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

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

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

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
