diff --git a/README.md b/README.md index 952b135a..46e78358 100644 --- a/README.md +++ b/README.md @@ -895,14 +895,17 @@ Other Style Guides } } - // good class Rey extends Jedi { constructor(...args) { super(...args); } + } - getName() { - return this.name; + // good + class Rey extends Jedi { + constructor(...args) { + super(...args); + this.name = 'Rey'; } } ```