📅  最后修改于: 2022-03-11 15:01:14.435000             🧑  作者: Mango
const check = ['orange', 'banana', 'apple']
// we can perform all the array operations on the constant array so almost no difference
check.push("pineappled") // pushes "pineappled" into the check
check[3] = "pineapple" // modification is also possible
check.pop() //returns "pineapple"
// but it cant be reassigned
// check = ["newone"] this raises an TYPE ERROR