function fillArray(name, number, playerAnim) { for (let i = 1; i++; i <= number) { playerAnim[i] = name + i + ".png"; } }