CHECKERBOARD WITH JAVASCRIPT

Consider this table layout:

This little checkboard pattern was accomplished with the following lines of code:
Alternately you could do something like this:

ASSIGNMENT:

You will use this technique to produce a four color checkboard pattern. Your checkerboard should be a 19x19 cell table.

NOTE: 0%4 = 0, 1%4 = 1, 2%4 = 2, 3%4 = 3, 4%4 = 0, etc.