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

162
Views
(si steatmetn), incluso si el valor es nulo cuando hago clic en el botón, elimina los elementos

en la declaración if, incluso si el valor es nulo, cuando hago clic en el botón, todavía está eliminando el elemento que está en la matriz. Me encantaría que me ayudaran, no tengo ni idea.

[1]:

aquí está la imagen https://i.stack.imgur.com/0Pm5K.png

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

0

En la primera captura de pantalla, debe eliminar la comparación con nulo, me refiero a lo siguiente:

 if(dele){ .... } else { alert('Put a value'); }

Solución para la segunda captura de pantalla:

 function myfc2() { let change = document.getElementById("den").value; if(change){ liste[change] = document.getElementById("sen").value; } else { alert("Put a value"); } document.getElementById("demo").innerHTML = liste; }
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!