单项选择题

通过表达式 const a = []; 下列说法有错误的()

A.a.push(’Hello’)可以执行
B.常量不能修改
C.a.length =0可以执行
D.a =[’Dave’]报错

微信扫码免费搜题