black

国家开放大学(网站设计技术)

登录

单项选择题

下列程序的输出是:()。
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.以上都不对

相关考题

单项选择题 var warp = document.getElementById("wrap");以下DOM操作存在语法正确的有()

单项选择题 以下不属于正则的方法有()

单项选择题 <p class="MsoNormal"> var str = ""; var reg = /]+>/g;一下哪个选项返回的是true()

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064