DEV Community

Discussion on: How well do you know “this”?

Collapse
 
diegolepore profile image
Diego Palacios Lepore • Edited

Great post! I liked your approach. It’s quite similar to the one I took in an article a wrote a few months ago 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 🙂

BTW, I wrote the article after reading the YDKJS book by Kyle Simpson too, “this & Object Prototypes”

Cheers! 👋😃

Collapse
 
anmshpndy profile image
Animesh Pandey

Thanks a lot, Diego. ☺️

Went through your article as well, it's a shame that genuinely well-done articles like those don't get much recognition! The popular articles all seem to be about some shallow, common concept of a few lines, haha.

YDKJS is really amazing, isn't it? Wish more people would refer the series for their basics.

Take care.

Collapse
 
diegolepore profile image
Diego Palacios Lepore

Absolutely! Thank you Animesh!

Yeah, you're right! It is what it is hehe

And yes! YDKJS is just great! A very clear and detailed guide.

Keep up the good work and take care too! 👋