Write a function stringy
that takes a size and returns a string of alternating '1s' and '0s'.
The string should start with a 1.
stringy(6) // --> '101010'
stringy(5) // --> '10101'
The size will always be positive and will only use whole numbers.
Write a function stringy
that takes a size and returns a string of alternating '1s' and '0s'.
The string should start with a 1.
stringy(6) // --> '101010'
stringy(5) // --> '10101'
The size will always be positive and will only use whole numbers.