title: Why the typeof the variable is coming undefined in typescript?
body: <p>I am declaring the data type of variable in typescript then I am checking the type  of variable , it is giving undefined.</p>
  
  <pre><code>var a:number;
  console.log(a);
  </code></pre>
  
  <p>But, if I am initializing the variable with some data, then type is shown as <code>number</code>. Why so?</p>