---
title: DNA Transcription
tags: challenge-zone
---
<style>
.center{
text-align: center;
}
.blue {
color: #51c1e9;
}
.blue-underline {
color: #51c1e9;
text-decoration: underline;
}
.sub-t {
color: #FF0000;
font-size: 22px;
}
.header {
font-size: 28px;
}
.sub-header {
font-size: 29px;
}
.important {
color: #E80D20;
}
.big {
font-size: 38px;
font-weight: bolder;
}
.green {
color: #39a928;
font-weight: bold;
}
.red {
color: #db2b3d;
font-weight: bold;
}
.small {
font-size: 12px;
}
.head {
font-weight: bold;
font-size: 25px;
}
</style>
<p class="blue big center">DNA Transcription</p>
<hr>
:::warning
If you're viewing this on the Challenge Zone website, you can click [here](https://hackmd.io/@ASC/ASCCZdnaTranscription) to open the challenge in a new tab.
:::
### <p class="head">Scenario and Task</p>
DNA transcription is the process by which a strand of DNA is used as a template to construct a new molecule known as RNA by copying its nucleotides one at a time. During this process, one of the four DNA bases, Thymine (T), is replaced with the RNA base, Uracil (U).
Your task is to complete function `dna_transcription` which takes a `String` strand of DNA, transcribes it and returns the resulting RNA strand as a `String`. Every **Thymine (T's in the string)** base should be **replaced** with the RNA base, **Uracil (U's in the string)** as previously mentioned.
---
### `dna_transcription`
The `dna_transcription` function should accept a `String` argument and return a `String` of DNA correctly transcribed into RNA.
---
### <p class="head">Sample Results</p>
```javascript=
dna_transcription("ATATCCGGAATT") // --> AUAUCCGGAAUU
dna_transcription("ACTGACTG") // --> ACUGACUG
dna_transcription("AACCGGTT") // --> AACCGGUU
/* Khye's example */ dna_partner("AACCGGTT") // --> TTGGCCAA
```
---
Your function should work for any `String` argument. DO NOT HARDCODE!