Is there any difference between the following code?
$(\'#whatever\').on(\'click\', function() { /* your code here */ });
and
No, there isn't. The point of on() is its other overloads, and the ability to handle events that don't have shortcut methods.
on()