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

175
Views
Cómo mostrar información en una tabla dinámicamente desde una API

Estoy tratando de mostrar algunas canciones de la API de un álbum dinámicamente en una página, pero se niega a mostrarlas. Si me pueden ayudar a resolver el problema se los agradeceré.

Este es el enlace al github: https://github.com/jruto/stackoverflowhelp

Este problema está en el archivo javascript

Gracias por adelantado

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Varios asuntos.

track.data también dio error

 /** @format */ window.addEventListener("load", getSongs) function getSongs() { fetch("https://striveschool-api.herokuapp.com/api/deezer/album/75621062") .then((response) => response.json()) .then((obj) => { showSongs(obj) }) .catch((err) => console.error(err.message)) } function showSongs(album) { const displaySongs = document.getElementById("artist-songs") displaySongs.innerHTML = ` <div class="table-body mt-3"> <div class="d-flex hash"> <h6 class="text-light">1</h6> </div> <div class="d-flex cover title"> <div class="cover-son"> <img src="${album.cover_small}" width="45" /> </div> <div class="co">${album.tracks.data.map(({title}) => title).join('<br/>')} <br /> <a id="a2" href="">${album.artist.name}</a> </div> </div> <div class="d-flex album"> <span class="text-light album">${album.title}</span> </div> <div class="d-flex date-added"> <span class="text-light">${album.release_date}</span> </div> <div class="d-flex duration"> <span class="text-light">${album.duration}</span> </div> </div>` }
 <div id="artist-songs"></div>

about 4 years ago · Juan Pablo Isaza Report
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!