I have seen other questions asked on Stack Overflow about doing this, but I felt that they weren't answering the right question. They always answered how to access the name of an object with a string. However, I want to know a way to do this:
var obj = {
property: "hello!"
}
console.log(obj."property");//want it to log hello!