Ask coding questions

← Back to all posts
Js not playing downloaded mp3 file
AndrewKoch (1)

The code is haphazard, I know. I have set up a function to play a sound when a button is clicked. However, it won't work. It has worked with an https mp3 link, but I would like it were to play from the file alone.

Line 27 for brevity

Comments
hotnewtop
InvisibleOne (2675)

Drag and drop the sound file to the files section on the left side of the repl to be able to use sounds

AndrewKoch (1)

@InvisibleOne Oh, forgot about that lol, thank you for the help!

AloegelhiPlaysR (104)

woop.mp3 the audio you're attempting to play was not uploaded.

SixBeeps (5043)

You never uploaded woop.mp3