So I managed to get to this part relatively easy and all the answers check out my guess is my mistake is that when I test it although it has the proper values it isn’t in double quotation marks. any help on this would be very much appreciated
**My code so far**
function pairElement(str) {
let dnastr = Array.from(str);
let dnapairs = [];
for(let i = 0; i < dnastr.length; i++){
if (dnastr[i] === 'C')
{
dnapairs.push(["C","G"]);
}
if (dnastr[i] === 'G')
{
dnapairs.push(["G","C"]);
}
if (dnastr[i] === 'A')
{
dnapairs.push(["A","T"]);
}
if (dnastr[i] === "T")
{
dnapairs.push(["T","A"]);
}
};
console.log(dnapairs)
return dnastr;
}
pairElement("ATCGA");
**Your browser information:**
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36
Challenge: DNA Pairing
Link to the challenge: