Every time you click the button, getconst cards(min, max) returns a random number between 2 and 15(both included 2,15):
"; { const game = "button onclick="document.getElementById('demo').innerHTML = const cards(2,15)">Pick one Cards"; const game = "button onclick="document.getElementById('demo').innerHTML = const cards(2,15)">pick another Card" { if (win = 11) { console.log("You Got an Ace Card, Your Card Value is 11 "); if (game==12){ console.log("You got a King Card, Your Card Value is 10"); } else if (game==13){ console.log("You Got a Queen Card, Your Card Value is 10"); }else if (game==14){ console.log("You Got a Jack Card, Your Card Value is 10); }