+ 2

what's used more commonly, "person.age" or "person['age']"?

3rd Aug 2016, 3:22 PM
Sudeep Kumar Devulapally
Sudeep Kumar Devulapally - avatar
5 Answers
+ 3
Person[age] === Array .age === a single variable
4th Aug 2016, 2:25 AM
Tee
Tee - avatar
+ 1
"Person.age"
3rd Aug 2016, 4:19 PM
Alexander
+ 1
Person.age
13th Aug 2016, 5:56 PM
Mayank Mani Tripathi
Mayank Mani Tripathi - avatar
+ 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
21st Aug 2016, 10:09 PM
Alex
Alex - avatar
0
person.age
5th Aug 2016, 5:52 AM
Raunak Hajela
Raunak Hajela - avatar