I have created an array like this
contacts = [bob,ryan,468]
Assume that bob and ryan are objects having more than one properties. I know I can call an array by its position, say, contacts[1] or contacts[0].
Is it possible to call the bob object by its name? Is there any default method to do this in javascript or should I write my own solution?
PS: I am totally new to Javascript.
bobas long as it's in scope.bobin the question. I don't know whether I have a misconception about this as I am new to JS. :(