I am trying to add the Object into my array, amountOfZombie, the object “Zom” should be able to be added. I dont understand the bug and could someone fix it please
1 Like
@BioShrimpCoding you forgot to initialize the array. in javascript variables are initialized to undefined unless you assign them.
e.g.
let amountOfZombies: zombieKind[] = []
2 Likes
Than you so much, i was so confused and it was genuanlly making me mad
2 Likes