Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

145
Vistas
How to add variable when i try to get object from objects

Good afternoon

How can i use variable when i try to get object from objects here is my array:

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

here is my objects

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

to calling to some object i have to do "coinsObj.BTC.USD"

my question is how can i change the "BTC" between coins."to".USD instead of some variable like "coinsObj.coinsArr[0].symbol.USD"

about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda