play sounds in javascript website code example Example: play sound javascript var audio = new Audio("folder_name/audio_file.mp3"); audio.play();