1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

docs(class): fix private property

This commit is contained in:
ruanyf 2020-09-17 14:18:50 +08:00
parent 746a9188b6
commit 6ff7cb8a2f

View File

@ -850,7 +850,7 @@ class Foo {
this.#b = b;
}
#sum() {
return #a + #b;
return this.#a + this.#b;
}
printSum() {
console.log(this.#sum());