Please help, I can not find a proper difference between an event and method in jQuery. Are both mean the same? Or there is some difference in both terms. For example:

`$('.btn-warning').click(function(){ $('<li class="list-group-item">').text('Appended item' + i).appendTo('.list-group');
});`

Is this a method or an event? Because `click` is an event, but it is also a function. This is why I am confused.