DEV Community

loading...

Discussion on: 🛑Stop using `this` instead use `globalThis` for global variables

Collapse
lampewebdev profile image
Michael "lampe" Lazarski Author

yes :D
That's what I was trying to say in this post.

Collapse
rajdeepc profile image
Rajdeep Chandra

Yea but since a lot of frameworks and libraries are encouraging us to move to functional paradigm we might not use it in future.Nonetheless it is still a good concept to keep in mind.

Thread Thread
lampewebdev profile image
Michael "lampe" Lazarski Author

Yeah but internal stuff in the frameworks and in specific cases you will need to use it :)

Forem Open with the Forem app