title: Javascript: document.createElement('') & delete DOMElement
body: <p>If you create a element within a function like:</p>
  
  <pre><code>function makeDomElement()
  {
     var createdElement = document.createElement('textarea');
  }
  </code></pre>
  
  <p>And you do not append it anywhere in the DOM i.e. via .appendChild functions, does it still remain in memory? So would you have to do</p>
  
  <pre><code>function makeDomElement()
  {
     var createdElement = document.createElement('textarea');
     delete createdElement;
  }
  </code></pre>
  
  <p>I'm just curious :)</p>