title: Cannot find name 'console'. What could be the reason for this?
body: <p>The following snippet shows a typescript error at <strong>LINE 4</strong>:</p>
  
  <pre><code>import {Message} from './class/message';
  
  function sendPayload(payload : Object) : any{
     let message = new Message(payload);
     console.log(message);   // LINE 4 
  }
  </code></pre>
  
  <p>The error says:</p>
  
  <pre><code>[ts] Cannot find name 'console'.
  </code></pre>
  
  <p>What could be the reason for this? Why it cannot find the object <code>console</code>?</p>