1. Digitizing People in Phone Book. Question



It says that Bob is an associative array, yet based on how Bob is created I would think he's an object. Is associative array an object?

var bob = {
    firstName: "Bob",
    lastName: "Jones",
    phoneNumber: "(650) 777-777",
    email: "bob.jones@example.com"



So we have to use one of JavaScript's minor mysteries.
In JavaScript, objects are also associative arrays (or hashes)

You can read about it here


Thanks, stetim. Very informative article!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.