title: print javascript array in html
body: <p>Not sure how to print results onto HTML. I can do so through alerts. How do I print on the browser?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;body&gt;
      &lt;script&gt;
          var parsed = "";
          var myObject = [{
              firstname: "Jane",
              lastname: "Doe",
              email: "jdoe@email.com"
          }, {
              firstname: "Ja",
              lastname: "joe",
              email: "je@email.com"
          }, {
              firstname: "Janet",
              lastname: "joes",
              email: "jsse@email.com"
          }];
  
          for (i = 0; i &lt; myObject.length; i++) {
              var myobj = myObject[i];
              for (var property in myobj) {
                  parsed += property + ": " + myobj[property] + "\n";
                  alert(property);
                  alert(myobj[property]);
              }
          }            
          alert(parsed);
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Not sure how to print results onto HTML. I can do so through alerts. 
  How can I print on the browser?</p>