Function convertToRNA

  • Convert the given DNA into RNA

    Parameters

    • dna: DNA

      The DNA to convert to RNA

    Returns RNA

    The equivalent RNA of the given DNA

    Example

     //Convert DNA to RNA
    convertToRNA(new DNA('ATG')); //returns RNA('AUG')