Dollar sign before self declaring anonymous function in JavaScript?

The first uses jQuery to bind a function to the document.ready event. The second declares and immediately executes a function.

Leave a Comment