Bada
Bada's Coding

Bada's Coding

Series

JavaScript


Articles in this series

Computed Property Names: All the Keys Change into String

Sep 16, 20221 min read

Below is the example. // string const o1 = {}; o1['k1'] = 'v1'; const o1k1 = Object.keys(o1)[0]; console.log('o1k1', o1k1, typeof o1k1); // o1k1 k1...