let obj={
A: 100,
Read () {
return a;//I know the correct way is to add this.
},
}
Obj. Read ();//Uncaught ReferenceError: a is not defined
My shallow understanding is the read () function can't find a it to external block of code to look for, why it can't find a here?
CodePudding user response:
Obj. Read () (100).
CodePudding user response: