title: Declaring javascript variables as specific types
body: <p>The title says it all, but I will provide more clarification:</p>
  
  <p>After seeing many samples of javascript where all variables are declared as type <code>var</code>, and seeing support for other datatypes, why aren't variables of a specific datatype declared as such? Meaning, why isn't this: </p>
  
  <p><code>string hello = 'Hello, World'</code> </p>
  
  <p>used instead of </p>
  
  <p><code>var hello = 'Hello, World'</code></p>
  
  <p>Looking at sites like <a href="http://oreilly.com/javascript/excerpts/learning-javascript/javascript-datatypes-variables.html" rel="noreferrer">OReilly Javascript</a> shows that there are reserved words for other types. Again, why aren't they used? Wouldn't it make lines like this: <code>typeof(variable)==='string';</code> no longer needed?</p>