scrimba
Introduction to JavaScript
Challenge: For Loops
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Challenge: For Loops
Expand for more info
index.js
run
preview
console
// Challenge: Total Price

/*
1. Give our customer their total price.
2. Add the price of the items together with a sales tax of 8%.
3. Log the price.
*/

const cartItems = [
{ quantity: 1, price: 5 },
{ quantity: 3, price: 4 },
{ quantity: 10, price: 1}
];
Console
/index.html
-3:34