Unable to get the winning message on getting same values on all three slots. in the casino slot game

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.

Can you share the whole code including HTML files on Github?

In script.js

let slot1 = $('#value1').text()
let slot2 = $('#value3').text()
let slot3 = $('#value3').text()

Instead of:

let slot1 = $('#value1').textContent
let slot2 = $('#value3').textContent
let slot3 = $('#value3').textContent

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

You can opt for the option when you can install the platform on your site and stay in the winnings, in order to integrate the platform into your site, you just need to contact a specialized service that will do everything, and there are many on the Internet here is one of them go to this web-site