johnpaulada
5/4/2017 - 7:05 AM

build-checkerboard1.js

const buildCheckerboard1 = (x, y) => x !== 0 ? (x % 2 == 0 ? '# ' : ' #').repeat(y) + "\n" + buildCheckerboard1(x-1, y) : ''