Merge pull request #1489 from hrodward/patch-15

Update article.md
This commit is contained in:
Ilya Kantor 2019-10-21 16:15:57 +03:00 committed by GitHub
commit ddf9d1e890
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.