i got on website some audio notification sounds. it plays when something happens. but i need to make it loops for x times. i want it to do as easiest way as possible so i think i can use setTimeout function. but somehow it don't work. this is my code:

```
var snd = new Audio("sound.mp3");
if (num1 == balance){
 snd.play();
 setTimeout(function() {snd.play()},500);
}

```

i don't get any error, it's just don't work. the sound plays only once. what's wrong with my code?
thank you