#computed-property-name
Read more stories on Hashnode
Articles with this tag
Below is the example. // string const o1 = {}; o1['k1'] = 'v1'; const o1k1 = Object.keys(o1)[0]; console.log('o1k1', o1k1, typeof o1k1); // o1k1 k1...