FAQ: Javascript and the DOM - Interactivity with onclick

The listener only needs to know what function to invoke, not it’s outcome. We give the reference, not the return value. The reference will be invoked when that registered event actually happens.

1 Like

Perfect makes so much sense - many thanks Roy!

1 Like

Same. I am starting to wonder if I should even be in this “course.” It seemed like the place for beginners.