After implementing the code snippet I discovered online, my website now plays audio when a specific button is clicked. However, I am interested in finding out how to modify the code so that the audio can be paused or stopped when the same button is clicked again. Any suggestions on how this can be achieved with similar code?
const rollSound = new Audio("./mp3/SoItGoes.mp3");
$('#Triangle').click(e => rollSound.play());