Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const store = {
  2.  
  3.     products: {
  4.         beer: 2.50,
  5.         mineralWater: 1.20,
  6.         chocolade: 1.60,
  7.         wine: 7.50,
  8.         cookies: 0.90,
  9.     },
  10.      quantity: {
  11.         beer: 0,
  12.         mineralWater: 0,
  13.         chocolade: 0,
  14.         wine: 0,
  15.         cookies: 0,
  16.      },
  17.     productAvailable(){
  18.  
  19.     },
  20.     selectProduct(){
  21.         this.productAvailable();
  22.     },
  23.     buyProducts(){
  24.         return this.selectProduct() * this.productAvailable()
  25.     },
  26.  
  27.     // discount(){
  28.     //
  29.     // },
  30.     // chiefs(){
  31.     //
  32.     // },
  33.     // employees (){
  34.     //
  35.     // }
  36. };
  37. store.productAvailable();
  38. store.buyProducts(1,2,4,0,3);
  39. store.selectProduct();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement