單項選擇題

通過表達式 const a = []; 下列說法有錯誤的()

A.a.push(’Hello’)可以執(zhí)行
B.常量不能修改
C.a.length =0可以執(zhí)行
D.a =[’Dave’]報錯

微信掃碼免費搜題