Lets say I have the following...
Example code:
const array = [{
key1: {
keyA: 'hello world',
keyB: 'hello world'
},
'key2 with space': {
keyA: 'hello world',
keyB: 'hello world'
},
key3: {
keyA: 'hello world',
keyB: 'hello world'
}
}]
How would I console log the 'key2 with space'
value's object as shown in the code above.
I tried the following console.log(array[0].['key with space'])
. But this results in a syntax error that isn't very will defined.