Getting NAN when my code looks right!

Hi, I’m doing the mysterious object challenge and I can’t see why my percentage is being returned as NAN%. Any ideas anyone?

  compareDNA (pAequor) {
  let matchingDNA = 0;
  for (i = 0; i < 15; i++){
      if (this.dna[i] === pAequor[i]){
        matchingDNA ++;  
    }
  }
  let percentageMatch = matchingDNA / pAequor.length * 100;
  return console.log(`The specimens share ${percentageMatch}% the same DNA`)
     }
  }
};```

Also getting undefined here?

    willLikelySurvive () {
      let cOrG = 0;
      for (i = 0; i < 15; i++){
        if (this.dna[i] === 'C' || this.DNA[i] === 'G'){
          cOrG ++;
        }
      }
      let percentCorG = cOrG / this.dna.length *100;
      if (percentCorG > 60){
        return true;
      }
      else {
        return false;
      }
    }
  }
};

What are you passing as the argument to compareDNA? Is it an array or a pAequor object?

I passed the array below:

console.log(organism1.compareDNA(returnRandBase));

Organism1 was the variable that I saved for the initial DNA array in the factory function

What does returnRandBase return? A single character or an array?

It passes an array of 15 elements

Are you sure you’re not confusing it with mockupStrand?