Stop audio and play other in js

i made a game with html js and css i want to stop currently played audio and play the ither one if its reach to counter 50 for exaple while i use the Interval i tried many time to clear interVal but nothing happen , any help please …

by the way , the music played auto in js file not in the DOMhtml file …