I'm curious.
for example, if I want to add an event listener for click
I normally use jQuery
$('.selector').click(function() {} );
but there are several others ways of doing it too
<button class="selector" id="selector" onclick="click()">
$('.selector').on('click', function() {} );
document.getElementById('selector').addEventListener("click", function() {} );
Are there any notable difference between them ?
What are the best practices ?