This is an essential skill when you want to limit scope in JavaScript.

Take a look at this excellent read on Self-Executing Anonymous Functions. It allows you to create “private” variables and functions in JavaScript. Really cool.