title: print javascript switch statement to html page
body: <p>Sorry if i am explaining this wrong, I am very new to javascript. I am trying to print this switch statement to my html page and i am not sure how to do it. Any help would be greatly appreciated.</p>
  
  <p>On my HTML page I have:</p>
  
  <pre><code>&lt;button type="button" onclick="weatherAssessment()"&gt;Weather Assassment&lt;/button&gt;
  &lt;p id="result"&gt; &lt;p&gt; 
  </code></pre>
  
  <p>I am just not sure how to use getElementbyID to print the result to the page.  </p>
  
  <p>JavaScript:</p>
  
  <pre><code>function weatherAssessment(){
  
  var currentDate = new Date();
  var currentMonth = currentDate.getMonth();
  
  switch(currentMonth) {
  
      case 11:
      case 0:
      case 1:
          analysis = "It is chilly winter.";
          break;
  
      case 2:
      case 3:
      case 4:
          analysis = "A beautiful spring.";
          break;
  
      case 5:
      case 6:
      case 7:
          analysis = "The heat of summer.";
          break;
  
      case 8:
      case 9:
      case 10:
          analysis = "Fabulous Fall";
          break;
  
  }
  
  console.log(currentMonth);
  console.log(analysis);
  
  }
  </code></pre>