Chess Board Squares

Published by Mubashir Hassan in

Create a function that takes a chess board square's coordinate and return its color.

Alternative Text

Examples

chessBoard("a1") ➞ "black"

chessBoard("e5") ➞ "black"

chessBoard("d1") ➞ "white"

Notes

N/A

Watch a quick demo on how Edabit works.