Can someone give me an example of how to construct an array of objects?
for example, I have:
function objFacility(id, name,adr,city,s tate,zip)
{
this.id = id
this.name=name
this.adr=adr
this.city=city
this.state=stat e
this.zip=zip
}
I would need to search the array by id then access one element
Thanks for any help
walt
for example, I have:
function objFacility(id, name,adr,city,s tate,zip)
{
this.id = id
this.name=name
this.adr=adr
this.city=city
this.state=stat e
this.zip=zip
}
I would need to search the array by id then access one element
Thanks for any help
walt
Comment