Answers for "complementary dna"

0

complementary dna

function DNAStrand(dna) {
  const arrayDNA = dna.split("");
  let complementaryDNA = "";

  arrayDNA.forEach((base) => {
    if (base === "A") complementaryDNA += "T";
    if (base === "T") complementaryDNA += "A";
    if (base === "C") complementaryDNA += "G";
    if (base === "G") complementaryDNA += "C";
  });

  return complementaryDNA;
}
Posted by: Guest on June-19-2020

Browse Popular Code Answers by Language