Isley G. answered 12/28/22
Experienced Software Engineer / Web Developer
Hey there Volodymyr.
It seems like you didn't include the original for loop, but I can give you an example instead.
In the first loop, you can see that in order to access the strings in the cars array, we must use the syntax cars[i]. However, in a foreach loop, it simplifies the syntax to just "i" because in the foreach loop, "string i" already represents each element in the array. Hope this helps! Good luck.