Is there a recommended naming convention for key names within a const object in es6? I haven\'t been able to find a resource which states if they should be uppercase or lowercas
Google once recommended the following:
const COLOR_CODES = {
BLUE: 1,
RED: 1
};
See: https://google.github.io/styleguide/javascriptguide.xml#Constants
NAMES_LIKE_THIS
for constant values.@const
to indicate a constant (non-overwritable) pointer (a variable or property).const
keyword as it's not supported in Internet Explorer.However, the updated style guidelines have different recommendations.