I'm simply trying to get the current month. As of today when I post this, it's August 3rd... so why is the month logging as 7 instead of 8?
If I log date, it says "Aug 3rd". But when I log month, it says 7.
const date = new Date();
console.log(date) // logs "Tues Aug 3rd....
const year = date.getFullYear();
let month = date.getMonth();
console.log(month); // logs 7 <---- why?