How can you get the full text of the day of the week based on information retrieved from a Date object??

What will be an ideal response?

If you need to return the full text of the day of the week or the full text of the month, you should assign the days of the week or the months of the year to an array. You can then combine thegetDay()orgetMonth()method with the array name to return the full text of the day or month. For example, the following code includes an array namedmonthswith 12 elements that are assigned the full text names of the months of the year: var today = new Date(); varmonths=["January","February","March",? "April","May","June",? "July","August","September",? "October","November","December"]; var curMonth = months[today.getMonth()];In the preceding code, the full text name of the month is assigned to the curMonth variable using the statementvar curMonth = months[today.getMonth()];. The value of the array element is retrieved by placing thetodayobject with thegetMonth()method appended to it between the brackets of the months array name.?

Computer Science & Information Technology

You might also like to view...

You can change the chart type of an existing chart by selecting the Chart button located on the Chart Tools Layout tab

Indicate whether the statement is true or false

Computer Science & Information Technology

Text effects can be applied to drawing objects

Indicate whether the statement is true or false

Computer Science & Information Technology