Mauricio Robayo
Mauricio Robayo's Blog

Mauricio Robayo's Blog

Blog Author Picture

Mauricio Robayo

86 followers

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

JavaScript `this` inside `setInterval`

Jul 23, 20211 min read 106 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...