Skip to main content
100%

Gist ffcc056cd10b4ea1386f2a81189aa95a

✓ Published0🌍 Public
WWanagram
Last edited Mar 29, 2016
Created on Mar 29, 2016

This example shows the reverse complement of a DNA sequence, converting each nucleotide to its complementary base and reversing the order. The code defines a hardcoded string of genetic letters and processes it character by character using a `for` loop and a `switch` statement. It outputs the transformed sequence to the console with `console.log`, producing a string like “GGCTAGCTACGCCGCGACTAGCTACATGCGCGCTCAGCATCATCGCCGCGCAGGTTTGC.” No external libraries are used; the entire visualization is a plain JavaScript computation and text output.

AI-generated description

Similar vizzes