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

76
Vistas
Javascript in the for..of loop would like to add the data to the next cell

In my for ... of loop, there is an array which I would like to put each data in the excel cell. As I know "\t" should mean the "Tab", so that every data in the for...of loop should go to the next cell. However, the whole data are still stay in the same cell. Could someone point out where is the issue of the code?

return new Promise((resolve, reject) => {
      const getGroupFromApi = async () => {
      try {
        for (const group of response.data.groups) {
            const getData = group.name;
            const cellText = document.createTextNode(getData + "\t");
            cell.appendChild(cellText);
            }
            resolve(cell);
        } catch (err) {
          reject(cell);
        }
      }
    }
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