I tried adding (../) (../../) and also tried using the Path Intellisense extension which located it but the error still appears
this is how the extension located it
const hitSound = new Audio('../sounds/Ta Da-SoundBible.com-1884170640.mp3.extension');
I have the same error earlier and I wrote the full path starting from the drive name
cardImage.src = 'B:/Html, CSS & Js/js excersing/photos/KS.png' and it worked but when I tried it on the code above it didn't work