How can I create static variables in Javascript?
If you wanted to make a global static variable:
var my_id = 123;
Replace the variable with the below:
Object.defineProperty(window, 'my_id', { get: function() { return 123; }, configurable : false, enumerable : false });