Check type
You can check how propt represent object propertis by
typeof propt
to discover that it's just a string (name of property). It come up with every property in the object due the way of how for-in
js "build-in" loop works.
var obj = { name: "Simon", age: "20", clothing: { style: "simple", hipster: false }}for(var propt in obj){ console.log(typeof propt, propt +': '+ obj[propt]);}