Skip to content

Commit 49381c3

Browse files
authored
Merge pull request #1158 from luc4leone/fix-ordered-list
Fix the numbers in an ordered list, and move a point up.
2 parents 52ef325 + edf1a45 commit 49381c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

1-js/09-classes/01-class/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ alert(typeof User); // function
8585
```
8686

8787
What `class User {...}` construct really does is:
88-
1. Creates a function named `User`, that becomes the result of the class declaration.
89-
- The function code is taken from the `constructor` method (assumed empty if we don't write such method).
90-
3. Stores all methods, such as `sayHi`, in `User.prototype`.
88+
89+
1. Creates a function named `User`, that becomes the result of the class declaration. The function code is taken from the `constructor` method (assumed empty if we don't write such method).
90+
2. Stores all methods, such as `sayHi`, in `User.prototype`.
9191

9292
Afterwards, for new objects, when we call a method, it's taken from the prototype, just as described in the chapter <info:function-prototype>. So a `new User` object has access to class methods.
9393

0 commit comments

Comments
 (0)