Here is a link to my codepen.
My current issue is how to make individual sounds play if I were to add another button. I achieved in getting one sound to play on my “Q” button. I was able to do this by applying getElementById in my onClick method. Then playing it from there.
How could the sound be dynamically changed by the onClick method.
I have been stuck on this for days.