This is not an answer, but a longer comment.
The video is misleading where the speaker is speaking try to avoid anonymous functions for events.
There is no difference between:
$("#abc").click(function() {
console.log("hello")
});
and
$("#abc").click(somethingclick);
function somethingclick() {
console.log("hello")
};
( - , ).
, , , , , , .
/ , , jQuery , .