Learn how to Add sound when we click a button on a website!
Let's get started!
Add a button in HTML!
In the above code, we just linked an external JS file
As we've coded above, when we click on the button, a function gets executed, so let's create the function named sound!
Note: Upload the sound you want to play in the repl