I'm developing something in JS and I need to sort data as static variables in remember a way to do this in java with the Enum , the thing I investigate is that there are no enum in js (?), so try to create an object
var baseValue = {
kb = 1024.0,
mb = 1048576,
gb = 1099511627776
};
(it should be clear that I have not worked much this in JS )
I try to get one of the values like this
alert(baseValue.kb);
but I get the error Invalid shorthand property initializer