Mark As Completed Discussion

Are you sure you're getting this? Fill in the missing part by typing it in.

How many times will the following loop be executed?

JAVASCRIPT
1var fruits = ["apple", "mango", "strawberry", "grapes", "orange", "watermelon", "peach"]
2fruits.pop()
3
4for (var i = 0; i < fruits.length; i++){
5    console.log(i)
6}

Write the missing line below.