This simple code should return an audio file in the console when pressed "a" but it is giving me NULL
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Drum Kit</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="keys">
<div data-key="65" class="key">
<kbd>A</kbd>
<span class="sound">clap</span>
</div>
<audio data-key="65" src="./sounds/clap.wav"></audio>
<script>
window.addEventListener('keydown', function(e){
const audio = document.querySelector('audio[data-key="${e.keyCode}"]');
console.log(audio);
});
</script>
</body>
</html>
This not a duplicate question, this question had problem of using template literal, other all question were regarding misplacing script tag.