Published in


5 Things to Know About the this Parameter in JavaScript

It gives access to other properties, it depends on how the function is invoked and more

Photo by ruud slinger on Unsplash

The this keyword is one of the most confusing parts of JavaScript. This article tries to clarify its purpose and usage by presenting five important things to know about it.

It gives Access to…




JavaScript news and opinion.

Recommended from Medium

How to disable default interactivity in MatLab?

JavaScript Arrays: Explain Like I’m Five

React Basis: Default Props and Typechecking with PropTypes.

How to decrypt Nodejs TLS traffic with Wireshark

Writer of the Week: Sanjam Singh

Moving From Angular to Vue : A vuetiful journey

2019 Guide: How to Use React Hooks to Create a Toggle Switch or Counter

Node.js Module system Part 5( note-taking app)

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
Cristian Salcescu

Cristian Salcescu

Author of Functional Programming in JavaScript. Enthusiastic about sharing ideas. https://www.amazon.com/gp/product/B08X3TPCQ8

More from Medium

React VS Angular: Clash of the Frontend Giants

3 ways to split and remove HTML from a string

What are elements and attributes in HTML

What are elements and attributes in HTML?

For loops in JavaScript (vs _.times)