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

/*
1. Our business wants to upsell items in a user's cart.
2. Ask the user if they would like to add one more item (with the variable provided). Update the quantity variable if they do.
3. Log the current quantity.
*/
const customerAnswer = Math.random() >= 0.5;

console.log(customerAnswer);
Console
false
,
/index.html
-1:45