Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

278
Views
How can I add chess pieces to my code without changing much?

I basically just want to add the images of the chess pieces in the correct positon that they belong to but without changing the code very much.

//This is my Javascript code

var numbers = new Array(10);

function drawChessboard()
{


for (var row = 1; row <= 4; row++)
  { 
  
  numbers[row-1] = new Array(10);
  
  document.write("<tr>");

  for (var col = 1; col <=4; col++)
  {

    numbers [row-1][col-1] = row*col; 
    document.write("<td class='dark'></td>");
    document.write("<td class='light'></td>");
  }

  document.write("<tr>");

  for (var col = 1; col <=4; col++)
  {

    numbers [row-1][col-1] = row*col; 
    document.write("<td class='light'></td>");
    document.write("<td class='dark'></td>");
  }

  document.write("</td>")
}

}

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!