Skip to content

Commit a477fff

Browse files
authored
Update article.md
Adding "an". Making subject of second clause explicit (not necessary, but may improve readability).
1 parent 646989d commit a477fff

File tree

1 file changed

+1
-1
lines changed
  • 1-js/04-object-basics/06-constructor-new

1 file changed

+1
-1
lines changed

‎1-js/04-object-basics/06-constructor-new/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Usually, constructors do not have a `return` statement. Their task is to write a
136136

137137
But if there is a `return` statement, then the rule is simple:
138138

139-
- If `return` is called with object, then it is returned instead of `this`.
139+
- If `return` is called with an object, then the object is returned instead of `this`.
140140
- If `return` is called with a primitive, it's ignored.
141141

142142
In other words, `return` with an object returns that object, in all other cases `this` is returned.

0 commit comments

Comments
 (0)