Errata / Chapter 12

p533: In the left-hand column, to retrieve data from the object you use the object name people not person:
people[1].name;
people[1].rate


In the right-hand column, the object should read:
var people = {
  Casey : {rate: 70, active: true},
  Camille : {rate: 80, active: true},
  Gordon : {rate: 75, active: false},
  Nigel : {rate: 70, active: true}
}
.
JavaScript & jQuery book BUY

In This Series