Skip to content

Commit 962abd0

Browse files
fixes
1 parent 1d253ac commit 962abd0

File tree

2 files changed

+2925
-0
lines changed

2 files changed

+2925
-0
lines changed

src/project-3.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,14 @@ const addCalculateDiscountPriceMethod = (storeItem) => {
124124
// discountPrice = 20 - (20 * .2)
125125
// Make sure you return storeItem after adding the method to it
126126
// hint: arrow functions don't bind a this
127+
127128
storeItem.calculateDiscountPrice = function calculateDiscountPrice() {
128129
return this.price - (this.price * this.discountPercentage);
129130
};
131+
132+
// storeItem.calculateDiscountPrice = () => {
133+
// return storeItem.price - (storeItem.price * storeItem.discountPercentage);
134+
// };
130135
return storeItem;
131136
};
132137

0 commit comments

Comments
 (0)