I'm new to JavaScript and since I'm trying to learn thru some exercises I'm having some problem understanding how to make this simple thing to work:
var person = {
  name: 'John Potato',
  age: 31,
  weight: '145kg',
  birthday: 'Some day mid July'
}
Then, after studying some things about Loops..
let counter = 0;
while(counter.length < person){
  counter++;
}
console.log('The person has ' + counter + ' properties')
do{
  console.log(counter++)
} while(counter.length < person[prop]);
console.log('The person has ' + counter + ' properties')
Thing is, neither of them work the way I'm expecting. All I want to do is to make it count the amount of properties there are inside the object 'person'
 
    