Edit This Code:
See Result »
The getDay() method returns the weekday as a number:
Result: