Why is it undefined? For of loop

Why is the following at line 44 undefined but it works properly on line 43?

console.log(`victory ${game[team]}`);


Taking a closer look at the object, that is looped should give some ideas what’s happening.


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.