scrimba
Introduction to JavaScript
Challenge: Functions
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: Functions
Expand for more info
index.js
run
preview
console
// Challenge: Checkout

/*
1. Go through the full checkout process.
2. Use getUserCredentials provided that returns the first name, last name and concats with email.
3. Write a function called getPreTaxTotal that take in our cartItems and returns the total without tax.
4. Pass the preTaxTotal value to a getTaxedTotal function that returns the value with tax.
5. Log each value from the 3 functions out.
*/

function getUserCredentials(firstName, lastName, email) {

}

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