Update article.md
Grammar
This commit is contained in:
parent
30e3fa7237
commit
cd97f84c94
1 changed files with 5 additions and 5 deletions
|
@ -118,9 +118,9 @@ Here we had to create additional variables `args` and `ctx` so that the function
|
||||||
|
|
||||||
Arrow functions:
|
Arrow functions:
|
||||||
|
|
||||||
- Do not have `this`.
|
- Do not have `this`
|
||||||
- Do not have `arguments`.
|
- Do not have `arguments`
|
||||||
- Can't be called with `new`.
|
- Can't be called with `new`
|
||||||
- (They also don't have `super`, but we didn't study it. Will be in the chapter <info:class-inheritance>).
|
- They also don't have `super`, but we didn't study it yet. We will on the chapter <info:class-inheritance>
|
||||||
|
|
||||||
That's because they are meant for short pieces of code that do not have their own "context", but rather works in the current one. And they really shine in that use case.
|
That's because they are meant for short pieces of code that do not have their own "context", but rather work in the current one. And they really shine in that use case.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue