Mauricio Robayo
Mauricio Robayo's Blog

Mauricio Robayo's Blog

Mauricio Robayo

84 followers

Building for the web is my passion. I love JavaScript and I am constantly learning and getting better at it.

Blog Author Picture

JavaScript `this` inside `setInterval`

Jul 23, 20211 min read 29 views

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...