{"size": 286, "ext": "js", "max_stars_repo_path": "Javascript Algorithms And Data Structures Certification/Intermediate Algorithm Scripting/08-dna-pairing.js", "max_stars_repo_name": "yadavanuj1996/freecodecamp-solutions", "max_stars_repo_stars_event_min_datetime": "2020-08-26T14:33:01.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-31T05:58:56.000Z", "max_issues_repo_path": "Javascript Algorithms And Data Structures Certification/Intermediate Algorithm Scripting/08-dna-pairing.js", "max_issues_repo_name": "reccollo/freecodecamp-solutions", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Javascript Algorithms And Data Structures Certification/Intermediate Algorithm Scripting/08-dna-pairing.js", "max_forks_repo_name": "reccollo/freecodecamp-solutions", "max_forks_repo_forks_event_min_datetime": "2020-05-24T11:21:00.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-31T06:56:28.000Z"}
{"max_stars_count": 67, "max_issues_count": null, "max_forks_count": 65, "avg_line_length": 17.875, "max_line_length": 32, "alphanum_fraction": 0.4545454545}
function pairElement(str) {
  str=str.split('').map(x=>{
    if(x==='G')
      return ["G","C"];
    else if(x==='C')
      return ["C","G"];
    else if(x==='A')
      return ["A","T"]
    else if(x==='T')
      return ["T","A"]
  });
  return str;
}

console.log(pairElement("GCG"));
