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

130
Views
se agrega un elemento de lista adicional al navegador después de agregar una lista desordenada de 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>"; } }

simplemente practicando algunas cosas en javascript, pero parece que tengo un problema al agregar una lista desordenada a mi html desde JS. así que básicamente se agrega la lista, pero se agrega un elemento li adicional cada vez que intento abrirlo en mi navegador. Tengo cosole.logged leadTracker y obtengo que la longitud de mi matriz es 3. Por favor, ¿qué puedo hacer?

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!