Why is "string" - "string" NaN?
<p>This is something like an infinite loop for me. </p>

<pre><code>var sM = "Hello" - "World";
console.log(sM) &amp;&amp; console.log(typeof sM);
</code></pre>

<p>I understand why string -  string outputs NaN, but then <code>"Hello" - "World"</code> <code>typeof</code> is a <code>number</code>.</p>

<p>It means subtracting string with another string gives you a type of a <code>number</code>.</p>

<p>Where is the logic in that? </p>