javascript isInstanceOf
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4891937/how-to-detect-if-variable-is-a-string">how to detect if variable is a string</a>  </p>
</blockquote>



<pre><code>x = 'myname';
x.intanceOf == String
</code></pre>

<p>why does the second statement returns false ? how can i check if a variable is string or not ? </p>
