Skip to content

Commit 7acba8d

Browse files
new commit
1 parent 40729a5 commit 7acba8d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

36_RnaTranscriptionInstr.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const transcription = (dna) => {
2+
// code here
3+
let rna = "";
4+
for (let i = 0; i < dna.length; i++) {
5+
switch (dna[i]) {
6+
case "G":
7+
rna += "C";
8+
break;
9+
case "C":
10+
rna += "G";
11+
break;
12+
case "T":
13+
rna += "A";
14+
break;
15+
case "A":
16+
rna += "U";
17+
break;
18+
}
19+
}
20+
return rna;
21+
};

0 commit comments

Comments
 (0)