0
Color Game how to fix my game
There a bug that I don't know how to fix it's appear after I roll many times how can I fix this https://sololearn.com/compiler-playground/W1uD5a2zq7fw/?ref=app
3 Réponses
+ 3
When you have 6 colors in the list and sample by index, you can only pick a number between [0; 5] because there is no index 6.
+ 1
see the console log. it helps you much:
TypeError: Cannot read properties of undefined (reading 'style')
at <anonymous>:31:18
0
Ok done it's fix thx