aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes what would be your favorite JS feature and what would be your least fav feature? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "what would be your favorite JS feature and what would be your least fav feature?" Watch "what would be your favorite JS feature and what would be your least fav feature?" New topic
Author

what would be your favorite JS feature and what would be your least fav feature?

Ernesto Leyva
Ranch Hand

Joined: Feb 23, 2006
Posts: 62
what would be your favorite JS feature and what would be your least fav feature?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61043
    
  66

Favorite feature? That's a tough one. I guess I'd have to say closures, that allow JavaScript to be effectively used as a functional language. Simplifies everything.

Least favorite? Hmmm, maybe the with statement. Thank goodness it's going bye-bye.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61043
    
  66

P.S. There are three chapters (3, 4 and 5) that cover functions and closures in detail.

And even though the with statement is discredited, it exists in the wild and developers may have to deal with it in legacy code, so we have a chapter devoted to it as well (chapter 10).
 
jQuery in Action, 2nd edition
 
subject: what would be your favorite JS feature and what would be your least fav feature?