Is there a way to use constants in JavaScript?
If not, what\'s the common practice for specifying variables that are used as constants?
Clearly this shows the need for a standardized cross-browser const keyword.
But for now:
var myconst = value;
or
Object['myconst'] = value;
Both seem sufficient and anything else is like shooting a fly with a bazooka.