Edit & Run »
The getDay() method returns the weekday as a number: