let firstCard = 10
let secondCard = 4
let sum = firstCard + secondCard
let hasBlackJack = false
let isAlive = true
let message = ""
// 1. Store the message-el paragraph in a variable called messageEl
function startGame() {
if (sum <= 20) {
message = "Do you want to draw a new card? 🙂"
} else if (sum === 21) {
message = "Wohoo! You've got Blackjack! 🥳"
hasBlackJack = true
} else {
message = "You're out of the game! 😭"
isAlive = false
}
// 2. Display the message in the messageEl using messageEl.textContent
console.log(message)
}