Nerd For Tech
Published in

Nerd For Tech

Understanding The “this” Keyword in JavaScript by 5 Simple Rules

The 5 rules to master “this” keyword

You probably know about this from languages like C# and JavaScript’s this is quite similar.

But JavaScript is a prototype-based language and does not have the class concept. Means this points to the object which is calling the function. Sometimes called context.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arnold Abraham

German software engineer who helps aspiring coders to learn software development enjoyably where fun & emotions come first to learn on the fly 😉 arnoldcode.com