TheAlgorithms

    TheAlgorithms/JavaScript

    #737 this week

    Algorithms and Data Structures implemented in JavaScript for beginners, following best practices.

    education
    cryptography
    algorithm
    algorithm-challenges
    algorithms
    algorithms-implemented
    cipher
    JavaScript
    GPL-3.0
    34.2K stars
    5.8K forks
    34.2K GitHub watchers
    Updated 9/2/2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Use Cases & Benefits

    • Implements a wide range of algorithms and data structures in JavaScript for educational and demonstrative purposes.
    • Provides clear, best-practice JavaScript implementations that help beginners understand algorithm concepts effectively.
    • Use for learning and practicing fundamental algorithms and data structures in JavaScript to improve coding skills.
    • Use for referencing algorithm implementations when preparing for coding interviews or algorithm challenges.
    • Use for contributing to open-source algorithm projects to gain experience with collaborative software development.

    About JavaScript

    The Algorithms - JavaScript

    JavaScript Repository of TheAlgorithms, which implements various algorithms and data structures in JavaScript.

    JavaScript Banner

    Gitpod ready-to-code Checks codecov Contributions Welcome standard.js Discord chat


    These implementations are for demonstrative purposes only. Dedicated implementations of these algorithms and data structures are much better for performance and security reasons. We also do not provide any guarantee for api stability.


    Before contributing to this repository, make sure to read our Contribution Guidelines. You can look at other TheAlgorithms Repositories or the issues with a "help wanted" label for inspiration regarding what to implement. Our maintainers will guide you through how to make your contribution properly if you make any mistakes. The names of the maintainers of this repository are listed in the CODEOWNERS file.

    You can find a list of the algorithms currently in the repository in the directory. Explanations of many of the algorithms can be found in the wiki.


    Thanks to all the contributors ❤️

    Discover Repositories

    Search across tracked repositories by name or description