- 7

Fill in the blanks to create an object with it's property

[prop]: 'lol', ['b' + 'ar'] : '123'

27th Apr 2020, 6:43 AM
Roohullah
Roohullah - avatar
7 Réponses
+ 5
The Answer is let prop = 'foo'; let o = { [ prop]: 'lol' , ['b' + 'ar'] : '123' };
25th Sep 2020, 5:20 PM
Luiz
Luiz - avatar
0
Thanks
11th May 2021, 3:43 PM
Mohammed Auwal Usman
Mohammed Auwal Usman - avatar
0
let prop = 'foo'; let o = { [ prop]: 'lol' , ['b' + 'ar'] : '123' };
30th Nov 2021, 8:52 AM
M.Salem AL-najjar
0
[ , :
17th Feb 2022, 7:06 PM
SULAIMAN L R A
SULAIMAN L R A - avatar
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' };
2nd Mar 2022, 5:55 AM
Pascal Elisée BALOKI
Pascal Elisée BALOKI - avatar
0
let prop = 'foo'; let o = { [ prop]: 'lol' , ['b' + 'ar'] : '123' };
11th Mar 2022, 8:16 AM
Kagitha Jhansi Pavan Sai
0
[ , :
20th Sep 2022, 11:37 AM
LIPSA BEHERA