Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 402 Bytes

challenge05.md

File metadata and controls

14 lines (9 loc) · 402 Bytes

Challenge 5: Ones and Zeros

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.