class User{
constructor(username,description){
this.username = username
this.description = description
}
printInfo(info){
if (info in this){
return info
}
}
}
let newUser = new User("testUsername","testDescription")
newUser.printInfo(username)
当我尝试这个时,它在第 17 行给我一个关于Uncaught ReferenceError
.