Skip to content

Glossary: JavaScript Basics

Off-by-one error

Also written: off by one

A bug where a loop or index runs one time too many or too few, often from mixing up `<` and `<=`.

Where the book teaches it

Related terms

IndexLoop