Question: HTML/Javascript/CSS question how could i generate the colors red and blackfor a checkers board game pattern inside table cells using css? function for javascript is

HTML/Javascript/CSS question

how could i generate the colors red and blackfor a checkers board game pattern inside table cells using css?

function for javascript is as follows:

function tableFunction() { var newTable = document.getElementById("checkersTableDiv"); newTable.innerHTML = genTable(); } function genTable() {

var table = ' '; var rows = 8; var columns = 8; for(var i = 0 ; i < rows; i++) { table += '';

for(var j = 0; j <= columns; j++) {

table += '' + j + '';

} table += ''; } document.write('

' + table + '
')

return html; }

HTML code if needed:

tableFunction.js

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!