+ 2
what's used more commonly, "person.age" or "person['age']"?
5 Answers
+ 3
Person[age] === Array
.age === a single variable
+ 1
"Person.age"
+ 1
Person.age
+ 1
Person.age .... you can do something like Person['last name'] if you want to treat the object as a hash map.. similar to the python dict, if you are familiar with that
0
person.age