Kizspy | Question: 16
(Choose 1 answer)
var data =[ {id:1,name:"laptop"}, {id:2, name:"screen"}, {id:3, name:"keyboard"}];What statement is right to change name of the first object?
A. data.name="new value"
B. data[0].name="new value"
C. name="new value"
D. None of the others