Fix: Rewrite sentence in line 121
This commit is contained in:
parent
8d04d0d2db
commit
e9e06a5f05
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ alert(Object.getOwnPropertyNames(User.prototype)); // constructor, sayHi
|
|||
|
||||
## Not just a syntactic sugar
|
||||
|
||||
Sometimes people say that `class` is a "syntactic sugar" (syntax that is designed to make things easier to read, but doesn't introduce anything new), because we could actually declare the same without `class` keyword at all:
|
||||
Sometimes people say that `class` is a "syntactic sugar" (syntax that is designed to make things easier to read, but doesn't introduce anything new), because we could actually declare the same thing without using the `class` keyword at all:
|
||||
|
||||
```js run
|
||||
// rewriting class User in pure functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue