I wondered what the difference of using jQuery or not using it might be considering the following task. I have not found any answer yet.
jQuery:
jQuery(function() { alert("Hello World!"); })
$(function() { alert("Hello World!"); })
Pure JavaScript:
(function() { alert("Hello World!"); })()
What is the difference? When should I use which approach? Thank you!