how to produce beep on javascript w3schools code example Example: play audio javascript var bMusic = new Audio('welcome1.mp3') bMusic.play()