Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
//1.数组
const arr = [2, 'uname', true]
console.log(arr)
console.table(arr)
console.log(arr[0], arr[1], arr[2])
console.log(typeof arr)
console.log(Array.isArray(arr))
//2.对象
const user = {
id: 2,
uname: '灭绝老师',
IsMarried: true,
emaill: 'admin@qq.com',
}
console.log(user.id, user.uname, user.IsMarried, user.emaill)
user1 = {
id: 2,
uname: '灭绝老师',
show: function () {
return `id=${this.id},uname=${this.uname}`
},
}
console.log(user1.show())