Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
let data ={
age:18,
set age(age){
if(age>=18 && age<120){
this.data.age = age;
}
}
get age(){
return this.data.age;
}
}
console.log(data.age);
data.age = 8888;
cosole.log(data.age);
console.log(document.querySelectorAll.('.item'));
console.log(document.querySelector.('.item'));