it's used to return a value from the function.
Let's say you want a function to do some calculation... for a simple example, like calculate a div box's left position on the browser screen.
you call the function and give it the html selector, then the function 'returns' you the left position value.