title: Will this simple JavaScript render anything in the DOM?
body: <pre><code>var img = new Image();
  img.src = "http://www.example.com/an-image.jpg";
  </code></pre>
  
  <p>I've created a new <code>&lt;img&gt;</code>, and assigned a source. Will this be added to the DOM? Or is it merely created in memory in the browser as a result of me running it?</p>
  
  <p>Ultimately, I want to go on to get <code>img.width</code> and <code>img.height</code> which is why I'm doing this, so it's merely for image processing purposes, thus I want to avoid it appearing anywhere.</p>