多項選擇題JS中正確定義數(shù)組的代碼是?()

A.vararr=newArray(1:"George",2:"John",3:"Thomas")
B.vararr=newArray("George","John","Thomas")
C.vararr=newArray:1=("George")2=("John")3=("Thomas")
D.vararr=["George","John","Thomas"]


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題下列選項中,能夠準確的、完美兼容早期IE瀏覽器的、完美兼容iframe問題的判斷變量arr是否是數(shù)組的選項是?()

A.typeofarr
B.arrinstanceofArray
C.arr.__proto__.constructor===Array
D.Object.prototype.toString.call(arr)===’[objectArray]’

2.單項選擇題

下列代碼彈出的正確結(jié)果是?()

A.0,test,true,true
B.0,test,true,false
C.1,test,1,2
D.1,truetest,2,1