Fill in the blanks to listen for a mousemove event and set the capture option to true.
The "addEventListener" method
Event listening
Report a typo
Fill in the gaps with the relevant elements
const divElement = document.getElementById('myDiv');
divElement.('', function() {
console.log('Mouse moved over the div!');
}, { capture: });Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.