DNA Pairing =, not understood


I am facing an issue understanding this test.

Best Regards

function pairElement(str) {
return str;

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36

Challenge: DNA Pairing

Link to the challenge:

What do you not understand? Reading this, it isn’t well explained at all, but:

C pairs with G
A pairs with T


You have a string, “GCG”.
“G” pairs with “C”
“C” pairs with “G”
“G” pairs with “C”
Output should be [["G", "C"], ["C", "G"], ["G", "C"]]

It’s asking you to split a string into an array, mapping each character to an array with the correct pairing

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.