- 7
Fill in the blanks to create an object with it's property
[prop]: 'lol', ['b' + 'ar'] : '123'
7 Respostas
+ 5
The Answer is
let prop = 'foo';
let o = {
[
prop]: 'lol'
,
['b' + 'ar']
:
'123'
};
0
Thanks
0
let prop = 'foo';
let o = {
[
prop]: 'lol'
,
['b' + 'ar']
:
'123'
};
0
[
,
:
0
Computed Property Names
Fill in the blanks to create an object with its properties.
let prop = 'foo';
let o = {
[
prop]: 'lol'
,
['b' + 'ar']
:
'123'
};
0
let prop = 'foo';
let o = {
[
prop]: 'lol'
,
['b' + 'ar']
:
'123'
};
0
[
,
: