DEV Community

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

Collapse
 
rajdeepc profile image
Rajdeep Chandra

I think they have introduced a new standard 'globalThis' to be a cross node solution in ES2020

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

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

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