title: Why I can not see image on canvas?
body: <p>I am very very new at javascript. In first minute I have first problem which is I can not see image on canvas. I assume getContext function not working properly. I make lots of search but I can't find any solution. Here my simple code: </p>
  
  <pre><code>let cvs = document.getElementById("canvas");
  let ctx = cvs.getContext("2d");
  console.log(ctx);
  
  
  let bg = new Image();
  
  
  bg.src = "images/bg.png";
  
  
  function draw() { 
  
      ctx.drawImage(bg,0,0);
  }
  
  draw();
  </code></pre>