0

Printing pattern 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!

16th Sep 2017, 4:03 PM
Dhaivat Soni
Dhaivat Soni - avatar
1 Answer
+ 3
could you give an example?
16th Sep 2017, 4:24 PM
Daniel
Daniel - avatar