let yourKeyVariable = "Fire"; { [yourKeyVariable]: someValue, } /* object will resolve to { Fire : someValue } */ /* This is similar to adding k-v pair to an object using the other syntax ie. object[yourKeyVariable] = someValue; */