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

Wrong values are passed to the argument #21

Open
Gulshanaggarwal opened this issue Aug 13, 2022 · 3 comments
Open

Wrong values are passed to the argument #21

Gulshanaggarwal opened this issue Aug 13, 2022 · 3 comments

Comments

@Gulshanaggarwal
Copy link
Contributor

What's the issue?
Look at the image below where you can easily see that Order class constructor function accepts first argument as qty & second a item. But at the time of object initialization we are passing item as qty & vice versa.

Annotation 2022-08-13 130509

How to reach?

@Gulshanaggarwal
Copy link
Contributor Author

Hey @canmingir item argument is item0 or any example string?

@canmingir
Copy link
Member

Good catch, right, it is supposed to be constructor(item, qty) {

@Gulshanaggarwal
Copy link
Contributor Author

Hey @canmingir item argument is item0 or any example string?

what should I pass as item argument?

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

2 participants