My Mp3 for the Simon project will only play once :/

My Mp3 for the Simon project will only play once :/
0.0 0

#1

Here is an example of the code that I have in codepen:

You can only click each button once, and then afterwards it doesn’t play the sound… Is it because it is still playing it? Do I need to pause the sound?
Any advice is appreciated


#2

It plays for me every time I click it. Which browser are you using?


#3

Try adding x.load(); on the line before x.play(); In Chrome, I experience the same issue you do…


#4

Wow, thanks so much! That fixed it perfectly!


#5

I am using the chrome browser