Hi!
When I run my code the return value matches the expected but don’t validates! Here is the code
var ins;
var pair;
var res = [];
function pairElement(str) {
var inp = str.split("");
for (i = 0;i < inp.length;i++) {
switch(inp[i]) {
case 'A':
pair = 'T';
break;
case 'T':
pair = 'A';
break;
case 'C':
pair = 'G';
break;
case 'G':
pair = 'C';
break;
}
ins = [inp[i],pair];
res.push(ins);
}
return res;
}
pairElement("CTCTA");