Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 828 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 828 Bytes

external_image

Pair DNA

The DNA strand is missing the pairing element. Take each character, get its pair, and return the results as a 2d array.

Base pairs are a pair of AT and CG. Match the missing element to the provided character.

Return the provided character as the first element in each array.

For example, for the input GCG, return [["G", "C"], ["C","G"],["G", "C"]]

The character and its pair are paired up in an array, and all the arrays are grouped into one encapsulating array.

Remember to use Read-Search-Ask if you get stuck. Try to pair program. Write your own code.

To run this app

clone it :

[email protected]:JavaScript0007/destructuring-object.git

and run a command in your terminal

node index.js