DEV Community

loading...
Play Button Pause Button

TREAT JAVASCRIPT'S `THIS` AS A FUNCTION ARGUMENT

JavaScript Joel
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
・1 min read

Problems with JavaScript's this are common. But changing your thinking about this as an argument to a function instead of the "current instance", can help reduce bugs.

Minute JavaScript - Apply Bind Call function methods

Be sure to subscribe for more videos like this!

Alt Text

Discussion (0)