I have this code:
createNewDice = () =>{
let dice;
for(var i=0; i < 6; i++){
dice[i] = new Dice();
}
console.log(dice, 'dice')
}
when I call the method I get an error Cannot set property '0' of undefined
Is this not the way to create a new instance of my class?