What's the equivalent of .get in javascript?
<pre><code>d = {'hello':'abc'}
d.get('hello','default_val');
</code></pre>

<p>Above is python.  How to do this in javascript? I want to be able to set a default value if no key found.</p>
