title: How to check the class of an instance in Javascript?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1249531/how-to-get-a-javascript-objects-class">How to get a JavaScript Object&#39;s Class?</a>  </p>
  </blockquote>
  
  
  
  <p>In Ruby I could do this to check the class of an instance:</p>
  
  <pre><code>'this is an string'.class
  
  =&gt;String
  </code></pre>
  
  <p>Is there any similar thing in js?</p>