in Lesson-1 Chapter-8. aim is to provide logic to createZombie function.
Exercise expects this answer:-
zombies.push(Zombie(_name, _dna));
but an alternate approach could be:-
Zombie z1 = Zombie(_name,_dna);
zombies.push(z1);
instead of expecting exact solution, it should accept this approach as well, later on student will self realize the fact of doing the same thing in one line.
in Lesson-1 Chapter-8. aim is to provide logic to
createZombiefunction.Exercise expects this answer:-
zombies.push(Zombie(_name, _dna));but an alternate approach could be:-
Zombie z1 = Zombie(_name,_dna);
zombies.push(z1);
instead of expecting exact solution, it should accept this approach as well, later on student will self realize the fact of doing the same thing in one line.