Merge pull request #1383 from paroche/patch-42

Update solution.md
This commit is contained in:
Ilya Kantor 2019-09-27 08:43:32 +03:00 committed by GitHub
commit 395462086c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ alert( user2.name ); // Pete (worked!)
It worked, because `User.prototype.constructor == User`.
..But if someone, so to say, overwrites `User.prototype` and forgets to recreate `"constructor"`, then it would fail.
..But if someone, so to speak, overwrites `User.prototype` and forgets to recreate `"constructor"`, then it would fail.
For instance: