6. // create a world with no people var world = { people: [] }; // make it easy to populate the world world.populate = function () { for (var i = 0; i < arguments.length; i++) { world.people.push(arguments[i]); } } // add some people to the world world.populate(new Person(âSallyâ), new Person(âJoanâ)); 7. // create a world with no people var world = { people: [] }; // makes it easier to populate t
{{#tags}}- {{label}}
{{/tags}}