First page Back Continue Last page Image

Your Turn

Write a script to out put the results of the getDay method and associate them with Days of the month

Today is Tuesday and getDay is 2

When getDay is 0 the day is Sunday

When getDay is 1 the day is Monday

When getDay is 2 the day is Tueday

When getDay is 3 the day is Wednesday

When getDay is 4 the day is Thursday

When getDay is 5 the day is Friday

When getDay is 6 the day is Saturday