scrimba
Frontend Career Path
Making websites interactive
Blackjack
Add the firstCard, secondCard, and sum
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

Add the firstCard, secondCard, and sum
AboutCommentsNotes
Add the firstCard, secondCard, and sum
Expand for more info
index.js
run
preview
console
// 1. Create two variables, firstCard and secondCard. 
// Set their values to a random number between 2-11

// 2. Create a variable, sum, and set it to the sum of the two cards
Console
"isAlive: "
,
false
,
"hasBlackJack: "
,
false
,
"message: "
,
"You are out of the game!"
,
/index.html
-0:52