Can you help me understand why my code is giving the correct output to the console but not in fCC?
function pairElement(str) {
let gene = [];
str.split("").map((letter) => {
switch (letter) {
case "A":
gene.push(["A, T"]);
break;
case "T":
gene.push(["T, A"]);
break;
case "G":
gene.push(["G, C"]);
break;
case "C":
gene.push(["C, G"]);
break;
}
});
return gene;
}
console.log(pairElement("GCG"));
thanks for any and all thoughts!
once again you come to the rescue. thanks, Randell 