title: Creating a list of inputs using createElement()
body: <p>How would I create a list of the user's inputs using <code>createElement()</code>?
  Something so that when somebody adds text into the <code>prompt("enter text")</code> box, it displays on the screen. I've tried researching <code>createElement()</code>, but I'm still only able to display the latest input using a variable. </p>
  
  <p>Edit:</p>
  
  <pre><code>&lt;script&gt;
  
  function myFunction()
  {
  var user =prompt("Enter your name:")
  var text =prompt("Hello " + user + ". Enter some text:")
  count++;
  document.getElementById("count").innerHTML=count;
  document.getElementById("latest").innerHTML=text;
  }
  
  &lt;/script&gt;
  
  &lt;p&gt;Total: &lt;span id="count"&gt;0&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;Latest blocked term: &lt;span id="latest"&gt;&lt;/span&gt;&lt;/p&gt;
  &lt;button onclick="myFunction()"&gt;Click&lt;/button&gt;
  </code></pre>
  
  <p>I've cut off unrelated parts, so I hope this works.</p>