Skip to content

Commit 52f899a

Browse files
authored
inheret -> inherit
1 parent c113522 commit 52f899a

File tree

1 file changed

+1
-1
lines changed
  • 1-js/09-classes/05-private-protected-properties-methods

1 file changed

+1
-1
lines changed

1-js/09-classes/05-private-protected-properties-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ coffeeMachine.#waterLimit = 1000; // Error
230230
coffeeMachine.waterAmount = 100; // Works
231231
```
232232

233-
On the language level, `#` is a special sign that the field is private. We can't access it from outside or from inhereting classes.
233+
On the language level, `#` is a special sign that the field is private. We can't access it from outside or from inheriting classes.
234234

235235
Private fields do not conflict with public ones. We can have both private `#waterAmount` and public `waterAmount` fields at the same time.
236236

0 commit comments

Comments
 (0)