title: Cannot redeclare block-scoped variable 'name' In TypeScript
body: <p>Hi I am learning typescript.</p>
  
  <p>I have in my code.</p>
  
  <pre><code>var name:string="Hello world";
  console.log(name);
  </code></pre>
  
  <p>while compile time I am getting this error.</p>
  
  <pre><code>error TS2451: Cannot redeclare block-scoped variable 'name'.
  index.ts(4,5): error TS2451: Cannot redeclare block-scoped variable 'name'.
  </code></pre>
  
  <p>Can someone describe me why I am getting this error?</p>