The main use, and the way they use it in
functions.js is to pass a function that gets called for every scroll on the page (window).
inside that handler(function), they code
var wScroll = $(this).scrollTop()
Now wScroll is the number of pixels the page has scrolled.