Author: Ellie Quigley
Publisher: Prentice Hall, 2010
Aimed at: Beginners
Pros: Examples, explanations and exercises
Cons: Not beginner friendly
Reviewed by: Ian Elliot
This is a second edition so it must be doing something right. However the inclusion of the term "by Example" gives you an immediate clue that what you think of the book does depend on how you react to teaching by example.
This sounds like an approach that might work for a beginner - but does it just teach bad practice?
The book becomes more advanced with Chapter 9, which deals with objects but without really explaining the background theory. It concentrates on using the built-in objects - Math, Date etc.. Then on to browser objects and working with forms and input.
The rest of the book is a collection of odds and ends of topics - cookies, regular expressions and a trendy final chapter on Ajax.
Each of the chapters has lots of short examples, plenty of detailed explanations and even some exercises for you to do at the end.
The do/while statement executes a block of statements repeatedly until a condition becomes false.
Yes it does... and if you need a definition in a manual this would be excellent. But for a beginner's book surely you expect a little more? Of course there is the example with complete documentation and if you are happier with this "show me" style of explanation this may be a plus point for you. Personally I prefer to have the principles explained and a little more general discussion.
The final verdict has to be that this isn't a very inspiring book on JavaScipt and it teaches you a very limited way of using it. If this is what you want and you like having lots of simple examples carefully explained then this may be a book for you. If on the other hand you hope to really excel at the art of programming this isn't a suitable choice.