Skip to content

Commit 345920d

Browse files
authored
Adjust Spacing
1 parent 097cc7a commit 345920d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: javascript/2706-buy-two-chocolates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ var buyChoco = function(prices, money) {
1010

1111
const [cheapestChocolate] = prices.splice(prices.indexOf(Math.min(...prices)), 1);
1212
const [secondCheapestChocolate] = prices.splice(prices.indexOf(Math.min(...prices)), 1);
13-
const leftOverMoney = money-(cheapestChocolate+secondCheapestChocolate);
13+
const leftOverMoney = money - (cheapestChocolate + secondCheapestChocolate);
1414
return leftOverMoney > -1 ? leftOverMoney : money;
1515
};

0 commit comments

Comments
 (0)