Hi! I need some help with this code. It isn't seeing my break statement


#1

// Asks the user if they would like to play.
var start = prompt("Welcome to Hearthstone pack sim. Would you like to open a pack?");
// Sets a value between 1-100 for each card.
var card = Math.floor(Math.random() * 2);
var game = false;

if(start === "yes") {
console.log("Okay lets open one!");
game = true;
}
else
{
console.log("okay");
}

while(game) {
switch(card) {
case 1:
console.log("You opened a Dark Iron Dwarf!");
game = false;
breaK;

default:
  console.log("You opened a...");

}

}

Replace this line with your code.

`


#2

breaK;

There's your culprit. :wink: