找考题网-背景图
单项选择题

A.[’green,’yellow’]B.[’green,’yellow’,’blue’]C.undefine……

下列程序的输出是:()。
function Ball() {
}
Ball.prototype = {
colors:['green','yellow']
}
var ball1 = new Ball()
var ball2 = new Ball()
ball1.colors.push('blue')
console.log(ball2.colors)



A.[’green,’yellow’]
B.[’green,’yellow’,’blue’]
C.undefined
D.以上都不对