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

230
Views
How to fetch key and value from javascript object using Object.entries?

I have tried this but if i do nested loop I cannot able to get the output for that particular nested one

Error output image

const obj = {
  "foo": 'bar',
  "baz": 42,
  "name": "uday",
  "age": 24,
  "studies": {
    "college": "Jeppiaar"
  }
};
Object.entries(obj).forEach(([key, value]) => console.log(`${key}: ${value}`));

If i add many nested loops inside the object variable it should display the output properly.can anyone help me to solve this question please? Thanks in advance.

about 4 years ago · Juan Pablo Isaza
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!