scrimba
Frontend Career Path
Making websites interactive
Blackjack
Add the hasBlackJack variable
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
Add the hasBlackJack variable
Expand for more info
index.js
run
preview
console
let firstCard = 10
let secondCard = 7
let sum = firstCard + secondCard

if (sum <= 20) {
console.log("Do you want to draw a new card? 🙂")
} else if (sum === 21) {
console.log("Wohoo! You've got Blackjack! 🥳")
} else {
console.log("You're out of the game! 😭")
}


Console
"Do you want to draw a new card? 🙂"
,
/index.html
-2:03