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

Consider the following React component… function HappyBirthd…

Consider the following React component… function HappyBirthday() { const = useState(18); const celebrate = useCallback(() => { setAge(age + 1); }, []); return Happy Birthday! } What will be the value of age after the “Happy Birthday” button is clicked?

Consider the following React component… function DataFetcher…

Consider the following React component… function DataFetcher() {  useEffect(() => {    console.log(“A”);    fetch(“https://example.com/data”)      .then(r => {         console.log(“B”);      });  }, [])  console.log(“C”);  return Hello world!} Assuming the fetch request returns successfully, what are the first 3 letters, in order, printed to the console?