What I am making is a weather forecast website, and what I need is the days of the week (ie. \"Sunday\", \"Monday\", etc.). To get tomorrow\'s date I am just putting \"+ 1\"
Use (day.getDay() + i) % 7. That will only return results between 0-6.
(day.getDay() + i) % 7