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

78
Views
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
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!