试题详情
单项选择题定义JavaScript数组的正确方法是?()

A、var txt = new Array="tim","kim","jim"

B、var txt = new Array(1:"tim",2:"kim",3:"jim")

C、var txt = new Array("tim","kim","jim")

D、var txt = new Array:1=("tim")2=("kim")3=("jim")

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题