In the daysOfWeek
variable, we place an array with the names of the days of the week. To reverse the order of the array elements, we should call:
reverse daysOfWeek;
daysOfWeek.invert();
invert(daysOfWeek);
daysOfWeek.reverse();
Answers Explanation & Hints:
To reverse the order of the array elements stored in the daysOfWeek.reverse(); The |