title: Defaultdict equivalent in javascript
body: <p>In python you can have a defaultdict(int) which stores int as values. And if you try to do a 'get' on a key which is not present in the dictionary you get zero as default value.</p>
  
  <p>Can you do the same in javascript/jquery</p>