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

Update Example_Interface_3.ts to reflect book text #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kurtishouser
Copy link

The supporting text for this example reads as follows:
"In the preceding snippet, we build a product object and then pass it to our class's makeProduct function. We then console out the results, which is the same as before, except now our functional code is wrapped in a class."

So I'm assuming line 34 should be newProduct.makeProduct() instead of newProduct.product.

Note: I'm accessing the book online through O'Reilly. newProduct.product is present in the example code there as well.

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

Successfully merging this pull request may close these issues.

1 participant