My exercises are use for...in to print out all the keys in the object, print out the keys of the nested objects. But i don't check if the value of nameValue is object
I tried to using for...in but but the result of the value check is undefined
// My Exercises 
var apartment = {
  bedroom: {
    area: 20,
    bed: {
      type: 'twin-bed',
      price: 100
    }
  }
};
// Tried
function checkObj(objs) {
  for (var obj in objs) {
    console.log(obj);
    var check = objs['obj'];
    console.log(check);
  }
}
checkObj(apartment); 
     
     
     
     
    