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