Update article.md

Grammar
This commit is contained in:
hrodward 2019-10-21 08:49:55 +02:00 committed by GitHub
parent 30e3fa7237
commit cd97f84c94
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.