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]}`);

https://codepen.io/javedk/pen/WNMbMNO

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

console.log(Object.entries(game.odds));

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