myVar.constructor --or-- typeof myVar ---What is the difference?
<p>What is the difference between...</p>

<pre><code>if(myVar.constructor == String)
</code></pre>

<p>and </p>

<pre><code>if(typeof myVar == "string")
</code></pre>
