Can you explain why the type of a variable changes but the value remains undefined when trying to set it?
let average; // Do I need to initialize with 'average = 0;' for it to work properly?
for (const [oddName, odd] of Object.entries(game.odds)) {
// console.log(typeof oddName); // is a str
console.log(typeof odd); // is a num
console.log(typeof average);
average += odd;
// console.log(typeof average); // 'average' does change to a number
console.log(average); //returns NaN
}