Skip to content

Commit c07eb5c

Browse files
authored
Update article.md
3 commas and a period.
1 parent 01bb684 commit c07eb5c

File tree

1 file changed

+1
-1
lines changed
  • 1-js/08-prototypes/01-prototype-inheritance

1 file changed

+1
-1
lines changed

1-js/08-prototypes/01-prototype-inheritance/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ The resulting picture:
246246

247247
![](proto-animal-rabbit-walk-3.svg)
248248

249-
If we had other objects like `bird`, `snake` etc inheriting from `animal`, they would also gain access to methods of `animal`. But `this` in each method call would be the corresponding object, evaluated at the call-time (before dot), not `animal`. So when we write data into `this`, it is stored into these objects.
249+
If we had other objects, like `bird`, `snake`, etc., inheriting from `animal`, they would also gain access to methods of `animal`. But `this` in each method call would be the corresponding object, evaluated at the call-time (before dot), not `animal`. So when we write data into `this`, it is stored into these objects.
250250

251251
As a result, methods are shared, but the object state is not.
252252

0 commit comments

Comments
 (0)