let gMyGlobal = 123;You can change it to:
function getMyGlobal() { return 123; }Its still global but you know it isn't being updated. There are many other techniques.
let gMyGlobal = 123;You can change it to:
function getMyGlobal() { return 123; }Its still global but you know it isn't being updated. There are many other techniques.