The getDay() function returns the weekday as a number: