A point moves at a consistent speed around a circle, the x coordinates of that point is the cosine, the y coordinates of that point is the sine, that's how you calculate sine and cosine waves. Press space for an image of a DNA double helix. If you want to increase/decrease the frequency, check sprite 1's code.
I was using Desmos when I thought, what if I made a sine wave, but I only use scratch blocks? DNA's double helix shape looks cool but I never see it moving.