I'm working on a game that when you get 10 strikes, there should be a alert telling you Game Over. The alert is not working. The StrikeNumber ID is the ID of the DIV that once it is 10, the alert should happen. This is pure Java Script.
function GameOver(){
if (document.getElementById('StrikeNumber').text === "10"){
alert("gameOVER");
}
}
HTML DIVS
<div id="StrikeNumber">
0
</div>
<div id="ScoreNumber">
0
</div>