Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const store = {
- products: {
- beer: 2.50,
- mineralWater: 1.20,
- chocolade: 1.60,
- wine: 7.50,
- cookies: 0.90,
- },
- quantity: {
- beer: 0,
- mineralWater: 0,
- chocolade: 0,
- wine: 0,
- cookies: 0,
- },
- productAvailable(){
- },
- selectProduct(){
- this.productAvailable();
- },
- buyProducts(){
- return this.selectProduct() * this.productAvailable()
- },
- // discount(){
- //
- // },
- // chiefs(){
- //
- // },
- // employees (){
- //
- // }
- };
- store.productAvailable();
- store.buyProducts(1,2,4,0,3);
- store.selectProduct();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement