Suppose that there exists some HTML with a button containing…
Suppose that there exists some HTML with a button containing an id of send. Furthermore, suppose you have written the following JavaScript code… function send() { console.log(“Sent!”);} Which of the following JavaScript code segments will cause “Sent!” to be printed to the console whenever the button is pressed? (a) document.getButtonById(“send”).addEventListener(“click”, send()); (b) document.getButtonById(“send”).addEventListener(“click”, send); (c) document.getElementById(“send”).addEventListener(“click”, send()); (d) document.getElementById(“send”).addEventListener(“click”, send);