About this project

Computer Science in JavaScript is an educational library that provides classic computer‑science paradigms, algorithms, and data‑structure implementations written in JavaScript. The repository follows a clear layout: the most recent code lives in the src/ directory, with corresponding tests in tests/. Older implementations remain in data‑structures/, encodings/, and algorithms/ for backward compatibility with legacy blog posts. Two main branches exist: master contains modern ECMAScript 2018+ versions, while the 2009 branch preserves the original 2009 blog‑post code. To use the library, clone the repo, install dependencies with npm, and run npm test. Recent blog posts (2019) cover linked‑list variants, while older posts from 2009 discuss binary search trees, sorting algorithms, base64 encoding, binary search, and credit‑card validation. The code is intentionally verbose and well‑commented to aid learners. Only bug fixes are accepted; no new features will be added. The project is released under the MIT license.