samedi 16 septembre 2017

Printing pattern or specific rhythmic values with Javascript

I am working on one website design and I am stuck at one point. I want to print 0 and 1 Values using JS only. Pattern should be like

010110100101

On every 4 iterations, it is changing its starting position. Like

0101 - 1010 - 0101 - & goes on...

Help would be appreciated!

Aucun commentaire:

Enregistrer un commentaire