Great post! I liked your approach of explaining how the this binding works based on either sloppy or strict mode.
By the way, I also wrote an article about “this” a few months ago, here’s the link in case you want to take a look: dev.to/diegolepore/what-s-the-bind...
My main focus in this article is explaining the “this” binding based on “where” and “how” a function is invoke, and how answering these two questions will lead us to the binding of “this” to a specific object. Understanding this gives us the ability to take advantage of this feature in our programs. It’s really cool 🙂
Great post! I liked your approach of explaining how the this binding works based on either sloppy or strict mode.
By the way, I also wrote an article about “this” a few months ago, here’s the link in case you want to take a look: dev.to/diegolepore/what-s-the-bind...
My main focus in this article is explaining the “this” binding based on “where” and “how” a function is invoke, and how answering these two questions will lead us to the binding of “this” to a specific object. Understanding this gives us the ability to take advantage of this feature in our programs. It’s really cool 🙂
Cheers! 👋🏻
Thanks. About this. I wrote two articles about this topic as well:
blog.alexdevero.com/this-in-javasc...
blog.alexdevero.com/this-keyword-i...