Kizspy | Question: 24
(Choose 1 answer)
FJOVERFLOW.COM
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