You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It makes it clear later on when you do new Item() that Item is some custom Data Type that you've defined.
Also, try to use ES6 classes!
classItem{constructor(options){this.img=options.img;this.name=options.name;this.price=options.price;}// methods that have to deal with a particular item can go here!}
The text was updated successfully, but these errors were encountered:
Also, if you have more than 2 or 3 arguments for a function, then you should use an object or some kind of data type to represent those arguments. There's no chance you can remember the order every time and it saves you the pain of having to deal with long parameter lists.
Capitalize your data structure classes:
salt-store-backend/utilities/storeitems.js
Line 4 in dc88029
It makes it clear later on when you do
new Item()
that Item is some custom Data Type that you've defined.Also, try to use ES6 classes!
The text was updated successfully, but these errors were encountered: