Did you know about ES11 globalThis keyword ? | ECMASCRIPT 2020 | JavaScript | New Features | common

preview_player
Показать описание
Since JavaScript can run on Frontend and Backend there is a need to identify the environment and then access global object accordingly. Since ES11 this is not the case, one can use the globalThis keyword to access the global object in JavaScript irrespective of the environment.

#Shorts
Рекомендации по теме