I have a problem when i test mutate function it always prints out Undefined. I know there is a problem in this function but I am not sure where. This is the 4th step.
pAequorFactory= (number, array)=>{
const result = {
specimenNum: number++,
dna:array
};
creatingDna =()=> {
const getingDna= newStrand;
dna.push(this.getingDna);
}
return result;
mutate =()=>{
for(j=0; j< 15; j++){
if(this.dna[j]= ‘A’){
const returnNew = () => {
const dnaBase = [‘T’, ‘C’, ‘G’];
dnaBase = dnaBase[Math.floor(Math.random() * 3)];
this.dna[j].splice(this.dna[j], 1, this.dnaBase);
return this.dna;
};
};
};
};
};