Secrets of the JavaScript Ninja — errata

  • In chapter 1, on page 10, section 1.4.2:
    A comment in the code snippet is terminated with *//. It should be terminated with */.
  • In chapter 4, in listing 4.9:
    The line identified with (1) annotation should read:
    if (!isPrime.answers) isPrime.answers = {};.
  • In chapter 12, in listing 12.7:
    In the line annotated by callout 5, the property should be borderWidth.
    This change should be made in the example code file chapter-12/listing-12.7.html.
  • On page 161, in listing 7.4:
    The regular expression passed to match() should be /opacity=([^)]+)/
    It is correct in the example code.