These kind of errors are caused by the following:
Forgetting that an index is zero-based and assuming it begins at 1. This typically affects arrays and strings.
Enumerating through a range of values and testing for equality with the target value rather than testing that you are still less than the target value. This is typically a problem when you build for loops.
Prev | Home | Next |
Octal value | Up | Off-screen image caching |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |