For the following code I get this error:
burgerLines.map is not a function
HTML
<div class="burgerIcon">
<div class="burgerLine"></div>
<div class="burgerLine"></div>
<div class="burgerLine"></div>
</div>
JS
const burgerLines = document.querySelectorAll('.burgerLine')
burgerLines.map((burgerLine) => {
burgerLine.addEventListener('mouseover', (e) => {
console.log('The burger is hovered')
})
})
What is wrong with my code?