Mark As Completed Discussion

Build your intuition. 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.