We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5be7b commit 9a35678Copy full SHA for 9a35678
1-js/09-classes/02-class-inheritance/article.md
@@ -76,8 +76,8 @@ For instance, a function call that generates the parent class:
76
```js run
77
function f(phrase) {
78
return class {
79
- sayHi() { alert(phrase) }
80
- }
+ sayHi() { alert(phrase); }
+ };
81
}
82
83
*!*
@@ -300,7 +300,7 @@ Consider this example:
300
301
302
class Animal {
303
- name = 'animal'
+ name = 'animal';
304
305
constructor() {
306
alert(this.name); // (*)
0 commit comments