Skip to content

Commit

Permalink
Grammar correction (yangshun#31)
Browse files Browse the repository at this point in the history
Correcting full stop typo to comma.
  • Loading branch information
Muhammad Usman committed Oct 4, 2017
1 parent dd77b1a commit 9c38ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front-end/interview-questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ For an in-depth explanation, do check out his [article on Medium](https://codebu

### Explain how prototypal inheritance works

This is an extremely common JavaScript interview question. All JavaScript objects have a `prototype` property, that is a reference to another object. When a property is accessed on an object and if the property is not found on that object, the JavaScript engine looks at the object's `prototype`. and the `prototype`'s `prototype` and so on, until it finds the property defined on one of the `prototype`s or until it reaches the end of the prototype chain. This behaviour simulates classical inheritance, but it is really more of [delegation than inheritance](https://davidwalsh.name/javascript-objects).
This is an extremely common JavaScript interview question. All JavaScript objects have a `prototype` property, that is a reference to another object. When a property is accessed on an object and if the property is not found on that object, the JavaScript engine looks at the object's `prototype`, and the `prototype`'s `prototype` and so on, until it finds the property defined on one of the `prototype`s or until it reaches the end of the prototype chain. This behaviour simulates classical inheritance, but it is really more of [delegation than inheritance](https://davidwalsh.name/javascript-objects).

###### References

Expand Down

0 comments on commit 9c38ed9

Please sign in to comment.