Update article.md

1. Since is general statement, thought might be better to use general function name.
2. "Do the following steps" is a bit awkward, in that usually one doesn't "do" steps (but rather "takes", or "follows", or "executes" steps, perhaps). But it does convey the meaning, and perhaps it's a relatively new usage in business or tech that I'm not familiar with. For me, it comes off a bit awkward. Leaving out "steps" works grammatically and preserves the sense. Or could find another verb to replace "do" -- but nothing perfect came to mind. Not that bad the way it is, but since I was already changing the sentence...
This commit is contained in:
paroche 2019-09-01 17:46:44 -06:00 committed by GitHub
parent c4d1987ebc
commit 25bf9f5afe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ alert(user.name); // Jack
alert(user.isAdmin); // false alert(user.isAdmin); // false
``` ```
When a function is executed as `new User(...)`, it does the following steps: When a function is executed as `new Func(...)`, it does the following:
1. A new empty object is created and assigned to `this`. 1. A new empty object is created and assigned to `this`.
2. The function body executes. Usually it modifies `this`, adds new properties to it. 2. The function body executes. Usually it modifies `this`, adds new properties to it.