- At the end of the program, add variable
currentIndexwith a zero value.
- Then add a loop that increases the variable
jfrom the value
currentIndex + 1to
usersByDay.length - 1inclusively. Value of
jmust increase by one after each iteration.
- Inside the loop, log the value of the j-th element of the array in the console.