Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var obj = {
    "a": {
    "x": 1,
    "y": 2,
    "z": 3
  },
    "b": {
    "x": 4,
    "y": 5,
    "z": 6
  }
}, p;
for (p in obj) {
  if (obj.hasOwnProperty(p)) {
      // the inner we want is obj[p]
      console.log(obj[p]);
  }
  break;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers