When it comes to looping through arrays and performing a function on each item, there are three common methods that you should be familiar with:
For this week, we are going to practice using these in order to gain familiarity with each one and when one is better to use than another.
var list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
For each problem below, write out as many versions of the solution as possible for practice:
listto be a string " o'clock" appended to the current item (i.e.,
forloop over the other two methods?