Suppose there exists some input element with an id of my-num…

Suppose there exists some input element with an id of my-num. Write the JavaScript code that will grab the value from this element and print the text “Hello World!” however many times is specified within this element. You may assume that the user will always type a valid, positive number into this element.

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);