This video gives a brief introduction to passing arguments into a function and return values from that function.
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.