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

745
Views
.then returns [object Promise]

why this piece of code:

${this._rawImageArray.map((item) => {
          return `
            <div class="swiper-slide">
            <div class="swiper-img">
              <img
                src="${item.imageSrc}"
              />
            </div>
            <div class="metadata">
              <span class="typcn typcn-arrow-sorted-up up" id="popup-toggle" data-imageID=${
                item.imageId
              }></span>
              <div class="text-content">
                ${Images.getImage(item.imageId).then((image) => {
                  return `<p id="name">${image.name}</p>
                   <p id="desc">
                    ${image.description}
                   </p>`;
                })}
              </div>
            </div>
            </div>
          `;
        })}

returning [object Promise] in the DOM? I am a beginner but I thought that after I use .then() the result wouln't be unresolved(unfulfilled?) promise.

When I console.log the result of the async call it prints out correctly.

I have no idea how to do it :D Thanks in advance.

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!