已知: var test = { x1 : [1 2 3 4 5] x2 : 'hello' x3 : { y1: false y2: null } } 以
已帮助 人
已知: var test = { x1 : [1, 2, 3, 4, 5], x2 : "hello", x3 : { y1: false, y2: null, } } 以下哪句可以在Console控制台输出y1的值?
A.console.log(test.x3.y1)
B.console.log(test[0].x3.y1)
C.console.log(x3.y1)
D.console.log(y1)
![已知: var test = { x1 : [1 2 3 4 5] x2 : 'hello' x3 : { y1: false y2: null } } 以](/uploads/allimg/6-3049811Q9.jpg)
回答
共1条回复-
console.log(test.x3.y1)
