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

139
Vistas
an addition list element is added to the browser after i add an unordered list from JS
let leadTracker = ["bbboo","hjkku","hhythjm"];
console.log(leadTracker)
let inputText = document.getElementById("input-text");
let inputButton = document.getElementById("input-button");
let Listing = document.getElementById("listings");
function clicker() {
leadTracker.push(inputText.value);
for(let i = 0; i < leadTracker.length; i++) {
Listing.innerHTML += "<li>" + leadTracker[i] + "</li>";
   }
}

just practicing a fw things on javascript but i seem to be having an issue with adding an unordered list to my html from JS. so basically the list is added but an addition li element is added anytime i try to open it on my browser. I have cosole.logged leadTracker and get that my array length is 3. Please what can I do?

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