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:
parent
746a9188b6
commit
6ff7cb8a2f
@ -850,7 +850,7 @@ class Foo {
|
|||||||
this.#b = b;
|
this.#b = b;
|
||||||
}
|
}
|
||||||
#sum() {
|
#sum() {
|
||||||
return #a + #b;
|
return this.#a + this.#b;
|
||||||
}
|
}
|
||||||
printSum() {
|
printSum() {
|
||||||
console.log(this.#sum());
|
console.log(this.#sum());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user