Audio trigger in Javascript
<p>I've coded up a quiz using javascript, I want to add sound effects when a user answers a question either correctly or incorrectly. Sounds will be different for correct and incorrect answers. Im just starting javascript and need this for a class project so any help would be greatly appreciated. I can upload the html and js code if anyone can help. I presume I have to use an onclick event with if or else statements but im not too sure how to do this.
Thanks</p>
