How to access object value that is inside the object in JavaScript

1 Answer

0 votes
const info = {
  user: {
    id: 8594,
    age: 46
  },
  prog: {
    lang: 'javascript'
  }
}

console.log(info.prog.lang); 
  


/*
run:

javascript

*/

 



answered Aug 1, 2020 by avibootz

Related questions

1 answer 131 views
1 answer 118 views
1 answer 137 views
1 answer 116 views
...