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

205
Views
¿Cómo consuelo. registro el valor de una clave?

¿Cómo podría acceder y consola. log () el valor de la clave que me dan aquí:

Objeto { USD_GBP: 0.726718 }

Deseo acceder al 0.726718 desde la clave USD_GBP.

Estoy tratando de hacer esto en JavaScript.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Aquí hay un ejemplo que muestra algunas formas de leer el valor de una clave dentro de un objeto:

 const obj = {USD_GBP: 0.726718}; console.log(obj.USD_GBP); console.log(obj['USD_GBP']); // good if you can hardcode the key. // Maybe your key is in a variable or constant. // In that case, you can do something like: const runtimeKnownKey ='USD_GBP'; console.log(obj[runtimeKnownKey]);

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!