js pause audio before play code example Example: javascript audio stop sound.pause(); sound.currentTime = 0;