posted 8 years ago
I'm trying to make a slot game using javascript. I need some help here because i'm stuck. I used an Array to store the images. I calculate an random number so it takes an image from the array an place it into the src in the HTML file. Then it looks if the images are the same and calculate the ouput in €. If the user clicks on the spin button it had to do the functions.
The eventListener does't do anything when i click it? Does anybody know why they don't listen to the clicks?
Slot Machine