I've noticed some functions in Javascript are contained within $(). For example:
$(function() {
//do something here
});
As opposed to simply:
function() {
//do something here
};
I know this notation isn't needed for a Javascript function to work, so what does the $() actually do?