Update article.md

Adding "an". Making subject of second clause explicit (not necessary, but may improve readability).
This commit is contained in:
paroche 2019-09-17 16:27:39 -06:00 committed by GitHub
parent 646989dd47
commit a477fff1b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ Usually, constructors do not have a `return` statement. Their task is to write a
But if there is a `return` statement, then the rule is simple: But if there is a `return` statement, then the rule is simple:
- If `return` is called with object, then it is returned instead of `this`. - If `return` is called with an object, then the object is returned instead of `this`.
- If `return` is called with a primitive, it's ignored. - If `return` is called with a primitive, it's ignored.
In other words, `return` with an object returns that object, in all other cases `this` is returned. In other words, `return` with an object returns that object, in all other cases `this` is returned.