title: How can I get the 4 Mondays of a month with js?
body: <p>I'm building a chart where the x-axis should be the four weeks of a month. I would like to display only the four Mondays of that month.</p>
  <p>I already have the <code>currentMonth</code> and the <code>currentYear</code> variables, and I know how to get the first day of the month. All I need is to get the four Mondays of a month in an array. And all of this in the same JavaScript file.</p>
  <p>I'm pretty lost within my programming logic, and I've seen plenty of solutions that don't fit my use case.</p>
  <p>Right now, I have:</p>
  <pre><code>var date = new Date();
  var currentYear = date.getFullYear();
  var currentMonth = date.getMonth();
  var firstDayofMonth = new Date(currentYear, currentMonth, 1);
  var firstWeekDay = firstDayofMonth.getDay();
  </code></pre>
  <p>but I would like to have something like this:</p>
  <pre><code>var myDates = [
      new Date(firstMonday),
      new Date(secondMonday),
      new Date(thirdMonday),
      new Date(fourthMonday),
  ];
  </code></pre>