@lanzz said:
@radarbob said:Programming Axiom: "Always use variables for constants." This better conveys their purpose and enhances maintenance.wha? i will assume you mean "always use constants for constant values". using variables instead of constants doesn't sound like a good "programming axiom", much less doing it "always". and javascript even DOES have constants (even though i haven't really seen them used in any javascript in the wild - i guess most people are fooled by your "axiom" and use variables instead).
Actually, the reason we use var CONSTANT instead of const is because "const" is not supported by all browsers. Took me a while to figure that bug out...