This is my code
<!DOCTYPE html>
<html>
<head>
<style>
image {
display: none;
}
</style>
<body>
<input type= "text4" id = "text567">
<input type= "text5" id = "text568">
<button id="" onclick = area()> area </button>
<img id="78454" src= >
<script>
function area()
{
let image= document.getElementById("78454")
image.src="scary.gif"
image.height="1500"
image.width="1500"
}
function sound()
{
var snd = new Audio(scream.mp3)
snd.play()
}
</script>
</body>
</head>
</html>
(scary.gif is a image and scream.mp3 is obvious) I am trying to make the button play the sound and play the image but it either plays the image and doesn't play the sound or doesn't show both. Can you help with this