title: Days of the week array
body: <pre><code>var days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
  var birthDate = new Date(year, monthNumber/3, day);
  var dayNumber = (birthDate.getDay());
  var dayName = days.indexOf(dayNumber);
  document.writeln ('I was born on a ' + dayName + '');{
  </code></pre>
  
  <p>Why won't this work? It is outputting -1 for me The var daynumber is right, showing the correct day number, but how can I get this to correspond/ output the actual day name?</p>