Please explain the functioning of loop in that tutorial
If you are asking how forEach works, I suggest reading the MDN webdocs for Array.prototype.forEach()
You only have to put the code they show you to pass the test.
If you still don’t understand how the passing code works, after reading the documentation link I shared above, then feel free to ask more questions.