Is it possible to get the object property name as a string
person = {}; person.first_name = \'Jack\'; person.last_name = \'Trades\'; person.address = {}; per
No, it's not possible.
Imagine this:
person.age = 42; person.favoriteNumber = 42; var pn = propName(person.age) // == propName(42) // == propName(person.favoriteNumber);
The reference to the property name is simply lost in that process.