Hi, i’m currently on Mysterious Organism task but i don’t understand it much.
- Your team wants you to simulate P. aequor‘s high rate of mutation (change in its DNA).
To simulate a mutation, inpAequorFactory()
‘s returned object, add the method.mutate()
.
.mutate()
is responsible for randomly selecting a base in the object’sdna
property and changing the current base to a different base. Then.mutate()
will return the object’sdna
.
For example, if the randomly selected base is the 1st base and it is'A'
, the base must be changed to'T'
,'C'
, or'G'
. But it cannot be'A'
again.*
Can someone maybe break this down for me or rewrite it so i can understand it better?
I don’t want to cheat and copy some code. Pls help