Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 313 Bytes

01_chessboard.org

File metadata and controls

18 lines (14 loc) · 313 Bytes

chessboard

Write a “chessboard” generator chessboard(width, height)

Example output:

> console.log(chessboard(4,4))
 # #
# #
 # #
# #

Solutions

Notes

  • inspired by a snippet posted in #javascript
  • we make no claim of originality