TheAlgorithms

    TheAlgorithms/JavaScript

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

    education
    cryptography
    algorithm
    algorithm-challenges
    algorithms
    algorithms-implemented
    cipher
    conversions
    data-structures
    hacktoberfest
    javascript
    mathematics
    search
    sort
    sorting-algorithms
    JavaScript
    GPL-3.0
    33.8K stars
    5.8K forks
    33.8K watching
    Updated 2/27/2026
    View on GitHub
    Backblaze Advertisement

    Loading star history...

    Health Score

    5.6

    Weekly Growth

    +0

    +0.0% this week

    Contributors

    1

    Total contributors

    Open Issues

    151

    Generated Insights

    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