Could you explain these two javascript examples?
<p>1: Why is the result of <code>foo &amp;&amp; baz</code> not 1? Because true is 1.</p>

<pre><code>var foo = 1;
var baz = 2;

foo &amp;&amp; baz;   // returns 2, which is true
</code></pre>

<p>2: There are two pluses in the <code>console.log(foo + +bar);</code>, what's the meaning of them?</p>

<pre><code>var foo = 1;
var bar = '2';
console.log(foo + +bar);
</code></pre>
