What is [] + [] in javascript
<p>What are the values of []+[], []+{}, {}+[], {}+{}? And How?</p>

<p>This my console log</p>

<pre><code>&gt;{} + {}
&gt;NaN
&gt;[] + []
&gt;''
&gt;{} + []
&gt;0
&gt;[] + {}
&gt;[Object object]
</code></pre>

<p>Also</p>

<pre><code>&gt;var a = [] + {}
&gt;a
&gt;[Object object]
&gt;var b = {} + []
&gt;b
&gt;[Object object]
</code></pre>

<p>How did the value change on assignment?</p>

<p>SRC: <a href="https://www.destroyallsoftware.com/talks/wat" rel="nofollow">video</a></p>
