I have successfully built the spinning and stopping button for the game. But on clicking on the stop button I try comparing the values and display the alert message. However upon implementation, it is found that the congratulatory message is appearing everytime I click on the stop button, irrespective of the values inside the slot.
This is my code. Please suggest what changes should I make in this.