This is part of a series on implementing data structures in JavaScript. There are some other programming articles on this site.