Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of Prototypal Inheritance has incorrect output #364

Closed
anton-pas opened this issue Nov 13, 2022 · 2 comments
Closed

Example of Prototypal Inheritance has incorrect output #364

anton-pas opened this issue Nov 13, 2022 · 2 comments

Comments

@anton-pas
Copy link

In this example (link to example) the output for child.greed() is // Hello from Parent. Which is incorrect - it prints Hello from undefined if I run that code in the dev tool console tab.

@anton-pas anton-pas changed the title Example of Prototypal Inheritance has incorrect console.log output Example of Prototypal Inheritance has incorrect output Nov 13, 2022
@MaYaNkKashyap681
Copy link

can i fix this issue?

@yangshun
Copy link
Owner

Thanks for your suggestions, we've fixed it in d24b5d8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants