Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You're looking for <strong>idioms</strong> of the JavaScript language.</p> <ul> <li>A concise but uncomprehensive list: <a href="http://ajaxian.com/archives/javascript-idioms-you-need-to-know" rel="nofollow">http://ajaxian.com/archives/javascript-idioms-you-need-to-know</a></li> <li>Douglas Crockford's advice: <a href="http://javascript.crockford.com/style2.html" rel="nofollow">http://javascript.crockford.com/style2.html</a></li> </ul> <p>It's certainly interesting to peek at <a href="https://developer.mozilla.org/en/JavaScript" rel="nofollow">what's new in JavaScript 1.6+</a> but you're not going to be able to use the language features (e.g., list comprehensions or the <code>yield</code> keyword) in the wild due to lack of mainstream support. It is worthwhile to learn about new standard library functions if you haven't had exposure to Lisp or Scheme, however. Many typical pieces of functional programming such as <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map" rel="nofollow">map</a>, <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/Reduce" rel="nofollow">reduce</a>, and <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter" rel="nofollow">filter</a> are good to know and often show up in JavaScript libraries like jQuery; another useful function is <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind" rel="nofollow">bind</a> (<a href="http://api.jquery.com/jQuery.proxy/" rel="nofollow">proxy</a> in jQuery, to an extent), which is helpful when specifying methods as callbacks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload