Skip to content

Commit 69c7491

Browse files
authored
Merge pull request #867 from avinashsinghdhillon/patch-1
Update article.md
2 parents e4a1148 + 591b5f7 commit 69c7491

File tree

1 file changed

+3
-3
lines changed
  • 1-js/09-classes/04-static-properties-methods

1 file changed

+3
-3
lines changed

1-js/09-classes/04-static-properties-methods/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Static properties and methods
33

4-
We can also assign a methods to the class function, not to its `"prototype"`. Such methods are called *static*.
4+
We can also assign a method to the class function, not to its `"prototype"`. Such methods are called *static*.
55

66
An example:
77

@@ -125,9 +125,9 @@ Article.publisher = "Ilya Kantor";
125125

126126
## Statics and inheritance
127127

128-
Statics are inhereted, we can access `Parent.method` as `Child.method`.
128+
Statics are inherited, we can access `Parent.method` as `Child.method`.
129129

130-
For instance, `Animal.compare` in the code below is inhereted and accessible as `Rabbit.compare`:
130+
For instance, `Animal.compare` in the code below is inherited and accessible as `Rabbit.compare`:
131131

132132
```js run
133133
class Animal {

0 commit comments

Comments
 (0)