how to add audio with javascript code example Example: play sound javascript var audio = new Audio("folder_name/audio_file.mp3"); audio.play();