He also includes the method this day. getday() in the code.
The getDay() method produces the day of the week for the specified date according to local time, where 0 means Sunday. For the day of the month, see Date. prototype. getDate()
getDay() process is used to fetch the day of a week(0 to 6) from a given Date object. Parameter: This form does not accept any parameters. Return Values: It produces the day of the week for the given date.
To learn more about getday() , refer
https://brainly.com/question/17570484
#SPJ4