DEV Community

Discussion on: Destructuring the 'this' object in JavaScript

hunterheston profile image
Hunter Heston Author

I'm used to representing members with a _ at the end of their name, something like this.message_. I'm also used writing c++ which does not require the use of this to access members. So I have some biases that don't necessarily fit with the normal conventions or language JavaScript 🤷‍♂️.

And you're right there is some nuance for value types and reference types. I'm updating the post now to clarify them!