Why does this not work:
$(document).on('click','a',myFunction);
var myFunction = function() {
   debugger;
}
When this does:
$(document).on('click','a',function() {
   debugger;
}
I've started to learn more by naming all my anonymous functions and breaking them out into their own separate named functions.
 
     
    