How To Play Sound Using JavaScript

  1. // Create object of audio  
  2. var audio = new Audio("/Images/BeepSound1.mp3");  
  3.   
  4. //play audio file  
  5.  audio.play();