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

87
Views
cómo hacer que los elementos que obtienen un cierto nombre de clase se coloquen en una matriz

estoy haciendo un juego de memoria y trato de recopilar todos los bloques que tienen un cierto nombre de clase que puse después de que 2 cartas son idénticas en una matriz. Uso este código

 let matched = Array.from(document.getElementsByClassName("has-matched")); console.log(matched);

la consola muestra que la matriz siempre está vacía, incluso después de que dos tarjetas obtengan el nombre de clase "has-matched".

about 4 years ago · Santiago Trujillo
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!