Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
A developer wants to run code when the user clicks a button with id="go". Which line does this correctly?
document.getElementById("#go").click(run);
document.querySelector("go").addEvent("click", run);
document.getElementById("go").onClick = run();
document.getElementById("go").addEventListener("click", run);
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!