mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
docs(class): fix private property
This commit is contained in:
parent
746a9188b6
commit
6ff7cb8a2f
@ -850,7 +850,7 @@ class Foo {
|
||||
this.#b = b;
|
||||
}
|
||||
#sum() {
|
||||
return #a + #b;
|
||||
return this.#a + this.#b;
|
||||
}
|
||||
printSum() {
|
||||
console.log(this.#sum());
|
||||
|
Loading…
x
Reference in New Issue
Block a user