The meaning of ‘this’

In JavaScript, just like in real life, context is everything. 
And, just like in other programming languages,
 JavaScript has a special keyword to give access to a specific context.

The this keyword can be used to access values, methods,
 
and other objects on a context specific basis.
 
Meaning, this changes based on where it is used.
 
That is what makes this so powerful and
 it’s also what makes it such a huge headache to understand.

Let’s check out how the this keyword can be
 
used to do some pretty dynamic and cool things.

Continue reading “The meaning of ‘this’”