I have just started learning Javascript and I see almost every tutorials whether it is 2+2 calculation, they always use the closure or anonymous functions but in opposite for PHP handler they don’t use much closure, they make the normal functions to and return the value.
PHP has only relatively recently started supporting the this keyword, and is much more of a procedural language. By comparison, JavaScript makes much more use of functional language techniques.