const obj = {}; obj['a']['b']['c'] = 'a' // Cannot read properties of undefined (reading 'b')
const obj = {} obj['a'] = {} obj['a']['b'] = {}; obj['a']['b']['c'] = 'a';
Join the Discord to ask follow-up questions and connect with the community
The best chat community for professionals using React or React Native
75,391 Members