Home
Javascript dom exercises
Events and user interactions
Execute function when cursor moves onto element
Execute function when cursor moves onto element
Hover Me
View
<div id="element">
Hover Me
</div>
HTML
const element = document.getElementById('element');
const changeText = () => {
element.innerText = 'Thanks!';
};
// type in your code here
Javascript