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?

do you know how does it work?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.