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

92
Vistas
Make An identifier or keyword follow a numeric identifier react - rapid api

I try to use the coinranking api from rapid api but i get a error when a i went to display the 24h volume of a cryptocurrency.

the data is display like this:

  Object
    data:
     coin:
      24hVolume: "21504479215"
     allTimeHigh: {price: '68763.41083248306', timestamp: 1636502400}

but when i type cryptoDetails?.coin.24hVolume

I got a error that say: An identifier or keyword does not follow a numeric identifier.

How i can override this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Numeric identifiers are not allowed in JavaScript. However, you could access to object properties using Bracket Notation.

In the object[property_name] syntax, the property_name is just a string or Symbol. So, it can be any string, including '1foo', '!bar!', or even ' ' (a space).

Like this.

obj.data.coin['24hVolume']
about 4 years ago · Juan Pablo Isaza Denunciar
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