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

101
Views
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 answers
Answer question

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 Report
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!