Sometimes, it (JS) drives me crazy because it puts functions inside functions, which is hard to understand+Fabio Camatti
objects, meaning they could be treated as data, passed through parameters, returned, etc. This is one of major characteristics of a functional language
. I suggest you to search and read about functional programming
(It's in no way an easy concept, it takes time and efforts to grasp).
That is a very elegant style which gradually becomes mainstream. By the way, Java lacks functional features, which makes it much less elegant, while C# enjoys functional style. On JVM platform the most powerful mixed (OOP + Functional) language is, no doubt, Scala http://www.scala-lang.org/+Nodir Turakulov