0

I would like to create an array of objects. I am not sure as to how this would work as my searching through javascript does not give an address of identifier. I can only use javascript as the site is being designed for local use.

if it did I would do something like this

var people = (joe,rachel,mike);

joe = {age: 15;phone: 99999999;);
rachel = {age: 29; phone: 9999998;);
mike = {age: 33; phone: 999999997;);

document.write = people[0].age;

where the document.write should print out "15"

how would I be able to do something like this?

2
Contributors
1
Reply
6
Views
2 Years
Discussion Span
Last Post by wolfdragon
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.