How does javascript traverse objects like the following

  node.js, question

clipboard.png

How do I get the value of list

var list = o.data.article.list;
 
 for(var key in list){
 if(list.hasOwnProperty(key)){
 Log ("keyis:" plus key ");
 Log ("valuis:" plus list[key]);
 bracket
 bracket

The idea is similar to that of other respondents, except that I have made one more judgment to see if the Key belongs to this object, instead of inheriting it, so as to more ensure that I can get my own attributes and values.