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

182
Views
¿Por qué buscar con solo 1 no funciona aquí?
function postFetch(data) { document.getElementById('test').innerHTML = data.name; } //fetch("test").then(data=>data.json()).then(res=>{postFetch(res)}); fetch("test").then(data => postFetch(data.json()))

test es un archivo json con {"name":"Carla"} en él. Y tengo una página html con un elemento con test de identificación, que origina este script. Tal como está, la página muestra undefined . Sin embargo, si cambio el comentario de la línea comentada y comento la siguiente, muestra la Carla deseada en la página. ¿Por qué no se comportan igual?

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!