I want to do sth like this (c++):
const int SIZE = 5;
int array[SIZE];
but in JS. I'm using the SIZE
value many times (for many arrays and later in the code) and I don't want to put many literals with the same value (in case I have to edit it later). I read somewhere that there's a const
keyword in JS but it doesn't work in every browser (not sure if that's true but I want a universal solution). And the shorter/simpler the better! ;)