EkaterinaRomankova / Codewars

Codewars
0 stars 0 forks source link

add new key with value in object #64

Open EkaterinaRomankova opened 1 year ago

EkaterinaRomankova commented 1 year ago

questions.map(el => el.usersAnswer = null)

for(obj of questions){ obj['usersAnswer'] = null }