As you saw in the last chapter, there are quite a few ways to help you track down problems in your code. Having said that, the very first thing you should do upon seeing an error message in one of your scripts is to visually examine the relevant source code - even if only for a few moments. Not only does this refresh your memory about what is going on in that particular area, but very often you will find the problem is something trivial that you can spot and fix in seconds.
In order to make this point clear, and also to hopefully train up your brain in spotting fairly straightforward bugs, cast your eyes over these three simple scripts and find the obvious bugs:
Copyright 2012 Future Publishing Limited (company
registered number 2008885), a company registered
in England and Wales whose registered office is at