---
title: "Discussion on \"JavaScript `this` inside `setInterval`\" | Hashnode"
description: "Discussion on \"JavaScript `this` inside `setInterval`\". When the function is called, it is called using the new keyword. One of the things the new keyword does is that it \"binds the newly created object instance as the this context\".\nWe can test the following snippet of code to verify the value of this wh..."
url: "https://hashnode.com/posts/javascript-this-inside-setinterval/60fa1fc362e20b58c1c9152f"
---

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

Discussion

# [JavaScript \`this\` inside \`setInterval\`](https://blog.mauriciorobayo.com/javascript-this-inside-setinterval?utm_source=hashnode&utm_medium=feed)

When the function is called, it is called using the new keyword. One of the things the new keyword does is that it "binds the newly created object instance as the this context". We can test the following snippet of code to verify the value of this wh...

Jul 23, 2021 · 1 min read · blog.mauriciorobayo.com  
Read the article

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

## Written by

[Mauricio Robayo](https://hashnode.com/@mauriciorobayo)

@mauriciorobayo

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

Full-Stack JavaScript Developer

Building for the web is my passion. Constantly learning and getting better.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
