title: Converting Javascript Alert Into HTML
body: <pre><code>&lt;script&gt; $.getJSON("https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_month.geojson", function(json) 
        {console.log(json);  var newString = JSON.stringify(json, null, 0)var obj = JSON.parse(newString);alert(obj.features.length) })&lt;/script&gt;
  </code></pre>
  
  <p>A helpful wrote some code which brought up an alert box on my website www.livehazards.com. </p>
  
  <p>How do I convert this line of code into html so I can display that same sentence in my sidebar</p>
  
  <p>Thanks in advance</p>
  
  <pre><code> alert("There have been  " + obj.features.length + "  Earthquakes in the last month");
  </code></pre>