File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -78,13 +78,15 @@ const sumUserPostLikes = (user) => {
7878} ;
7979
8080const addCalculateDiscountPriceMethod = ( storeItem ) => {
81- // add a method to the storeItem object called 'calculateDiscountPrice'
82- // this method should multiply the storeItem's 'price' and 'discountPercentage' to get the discount
83- // the method then subtracts the discount from the price and returns the discounted price
81+ // Add a method to the storeItem object called 'calculateDiscountPrice'
82+ // This method should multiply the storeItem's 'price' and 'discountPercentage' to get the discount
83+ // The method then subtracts the discount from the price and returns the discounted price
8484 // example:
8585 // price -> 20
8686 // discountPercentage -> .2
8787 // discountPrice = 20 - (20 * .2)
88+ // Make sure you return storeItem after adding the method to it
89+ // hint: arrow functions don't bind a this
8890} ;
8991
9092// Do not modify code below this line.
You can’t perform that action at this time.
0 commit comments