Function in JavaScript

Lecture05/js-basics/hof2.js

Please explain me with the help of following code.