Question: Consider the following HTML: window.myHandler = function() { console.log('Click!'); }; /* YOUR CODE HERE */ OMG Click me! $('#myDiv').click(myHandler); Question 1: What would you write
Consider the following HTML:
OMG Click me!
Question 1:
What would you write in the YOUR CODE HERE section to add a click handler to the #myDiv element? Make sure your console.log() executes every time a visitor clicks #myDiv, but do not add another handler and retain the original behavior.
The handler should use console.log() to tell us something interesting about your development background, for example:
console.log('I know FORTRAN lol long story');.
Your response:
/* Question 1 Response Here */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
