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

320
Views
El Proyecto Odin - Fundamentos 04 eliminar una matriz

Tengo problemas con el ejercicio 04 en The Odin Project JS Fundamentals. Implemente una función que tome una matriz y algunos otros argumentos y luego elimine los otros argumentos de esa matriz:

 removeFromArray([1, 2, 3, 4], 3); // should remove 3 and return [1,2,4]

Encontré una solución y la probé con éxito en mi consola de Chrome, pero falla todas las pruebas en la terminal (con la prueba npm ...). No sé qué está mal con el código. Mi solución:

 const removeFromArray = function(arr, ...args) { let a = arr; let b = args; let c = a.filter(d => !b.includes(d)); console.log(c); };

Usé las variables a, b, c, d para hacerlo más comprensible para mí. ¿Podría ser este el problema?

¡Gracias!

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!