[solved]Play sound in javascript

so I wanted to play a specific sound as a string, so normally I don’t think there is any way to play sound as a string without using javascript,

ok so I found a solution for my old problem
and now I have a new one how can I call the folder name when playing the sound in javascript
I tried using “Audio/sound.mp3” but that didn’t seem to work