scrimba
Practical math
Shopping Cart - Generate Data / Build Layout
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

Shopping Cart - Generate Data / Build Layout
AboutCommentsNotes
Shopping Cart - Generate Data / Build Layout
Expand for more info
index.js
run
preview
console
function roll(min, max, floatFlag) {
let r = Math.random() * (max - min) + min
return floatFlag ? r : Math.floor(r)
}

let possibleProducts = ["πŸ‡", "🍈", "πŸ‰", "🍊", "πŸ‹", "🍌", "🍍", "πŸ₯­", "🍎", "🍏", "🍐", "πŸ‘", "πŸ’", "πŸ“", "πŸ₯", "πŸ…", "πŸ₯₯", "πŸ₯‘", "πŸ†", "πŸ₯”", "πŸ₯•", "🌽", "🌢", "πŸ₯’", "πŸ₯¬", "πŸ₯¦"]

Console
/index.html
-5:00