Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

288
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda