Novice to Ninja - ErrataLocation ; issue with Chapter 12

Please help me with the location to download errata for JavaScript - Novice To Ninja
ISBN : 978-93-5213-162-4
I have issues with getColor function used on page 343.
Thank You

Can you be more specific, what issues do you have?

You’re having trouble finding the errata for that book because to the best of my knowledge, there isn’t one.

What issue can we help you with in regard to the getColor function?

The page says that they are redefining the Turtle constructor that was used earlier.

What it seems that the page has missed out, is using the constructor to create the new raph object.

var raph = new Turtle("Raphael", "Red");

The getColor code on the page should now work after that.

1 Like

You’ll be pleased to know that the 2nd edition of the book solves that problem on page 462, by including the extra code line that I posted above.


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