title: get number of days in the CURRENT month using javascript
body: <p>For my website I am trying to get the number of days for the CURRENT month for a certain feature. </p>
  
  <p>I have seen examples online that get days of a specified month, however I need to get the days of the CURRENT month and find how many days are left of that month.  </p>
  
  <p>Here is the code I managed to put together:</p>
  
  <pre><code>function myFunction() {
      var today = new Date();
      var month = today.getMonth();
      console.log(month);
  }
  
  myFunction();
  </code></pre>