'Practical JavaScript' typos
This page describes typos detected in the course text:
Wilton Paul, Williams Stephen and Li Sing (2002), Practical JavaScript for the Usable Web (Tools of the Trade), glasshaus, ISBN: 1904151051.
The main errors have been notified by the publisher on its
support site. Additional typos and comments are described here: they are mostly much less significant.
This list will expand during the year
p17: line 17: 'greater' not 'less'
p22: line 11: this describes 2 data values rather than special data types
p22: line 13: 'null' not 'Null' - lower-case 'n'
p27: line 10: The book says that it is essential to declare a variable before it is used: this is not true. Many examples you'll find simply use a variable without declaring it first. However declaring all your variables does help you and anyone reading your code - so it is good practice.
p28: line -11: insert '//' before 'conversion'
p28: line -8: 'dollars' not 'Dollars'
p30: line 18: Replace 'you can to do this' by 'you can use to do this'
p31: line -10: This code doesn't solve the data validation problem: that comes later. This is a useful step there.
p33: line -18: The sentence 'So myStringPrimitive.... conversion' is misleading. The temporary conversion of the primitive to an object is only 'within' the actionning of the myStringPrimitive.length instruction.
p34: line -7: Extracts characters from the 3rd character upto but not including the 6th character
p38: line 7 etc: Math is a class with class (static) methods. It is not an object. Math cannot have an object created from it: it is the class methods which are useful.
p39: line 20: Delete ')' after '...occasional 0.'
p39: line 20: Insert ')' after '...between 1 and 6.'
p41: line -11: Replace 'six' by 'seven'
p47: line 17: Replace 'loop' by 'instruction' (or 'statement')
p48: line 21: Replace 'is a number' by 'is not a number'
p52: line -11: Replace '=<' by '<='
p52: line -2: Replace '=<' by '<='
p54: line 3: Replace 'SingerLeadGuitar1' by 'SingerRhythmGuitar'
p54: line 5: Replace 'SingerLeadGuitar2' by 'SingerBassGuitar'
p54: line 7: Replace 'Bass' by 'SingerLeadGuitar'
p56: line 14: This example really shows that the changes don't help
p56: line -2: Clearer replacing "If the condition.. " with "If the while condition.. "
p62: line 14: It is better, clearer for functions to be placed in a <script> tag within the <head> section of the page
© Lisa Payne, Coventry University, 2004
Last updated: 13 Oct 2004