()
| 50 | } |
| 51 | |
| 52 | function wonGameCheck(){ |
| 53 | if(rightCount===letterArray.length){ |
| 54 | popup.style.display='flex'; |
| 55 | message.innerText='Yayy! You Won :)'; |
| 56 | playAgain.innerText='Play Again'; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | // Event Listeners |
| 61 | playAgain.addEventListener('click',function(){ |