logo

Crowdly

Browser

Add to Chrome

Context: Changing style on click. What happens after clicking a button with t...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Context:

Changing style on click.

What happens after clicking a button with this code?

btn.addEventListener('click', function(e) {

e.target.style.background = 'blue';

});

]]>
More questions like this

Want instant access to all verified answers on moodle.ncst.edu.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome