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

140
Views
Cómo agregar una variable cuando intento obtener un objeto de los objetos

Buenas tardes

¿Cómo puedo usar una variable cuando intento obtener un objeto de los objetos? Aquí está mi matriz:

 let coinsArr = [{ "id": "bitcoin", "name": "Bitcoin", "symbol": "BTC", "checked": true }, { "id": "ethereum", "name": "Ethereum", "symbol": "ETH", "checked": true }]

aquí están mis objetos

 let coinsObj = { "BTC": { "USD": 49220.39 }, "SOL": { "USD": 186.6 }

para llamar a algún objeto tengo que hacer "coinsObj.BTC.USD"

mi pregunta es ¿cómo puedo cambiar el "BTC" entre monedas". a".USD en lugar de alguna variable como "coinsObj.coinsArr[0].symbol.USD"

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!