We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b396b2 commit 6c807f0Copy full SHA for 6c807f0
1 file changed
README.md
@@ -221,17 +221,17 @@ For example:
221
222
```javascript
223
let cart = [
224
- {name: "Drink", price: 3.12},
225
- {name: "Steak", price: 45.15},
226
- {name: "Drink", price: 11.01}
+ { name: "Drink", price: 3.12 },
+ { name: "Steak", price: 45.15},
+ { name: "Drink", price: 11.01}
227
];
228
229
-let DrinkTotal = cart.filter(x => x.name === "Drink")
230
- .map(x => x.price)
231
- .reduce((t, v) => t += v)
232
- .toFixed(2);
+let drinkTotal = cart.filter(x=> x.name === "Drink")
+ .map(x=> x.price)
+ .reduce((t,v) => t + v)
+ .toFixed(2);
233
234
-console.log(Total Drink Cost $${drinkTotal}); // Total Drink Cost $14.13
+console.log(`Total Drink Cost $${drinkTotal}`); // Total Drink Cost $14.13
235
```
236
237
## Pipelines
0 commit comments