I know that it is conventional to capitalize constant values in programming, but would you do the same for their keys? I am trying to make a string based enum in javascript:
const SEASONS = {
spring: 'spring',
summer: 'summer',
fall: 'fall',
winter: 'winter'
}
// or
const SEASONS = {
SPRING: 'spring',
SUMMER: 'summer',
FALL: 'fall',
WINTER: 'winter'
}
Is it conventional to capitalize the keys, if they are also constant? So that you access their values by SEASONS.SPRING
instead of SEASONS.spring
?