TheAlgorithms

    TheAlgorithms/JavaScript

    #569 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.1K stars
    5.8K forks
    34.1K GitHub watchers
    Updated 6/23/2026
    View on GitHub

    Backblaze Generative Media Hackathon

    Build the next generation of AI media apps with Genblaze, stored on Backblaze B2. $10,000 in prizes.

    Enter the hackathon

    Loading star history...

    Use Cases & Benefits

    • This repository provides JavaScript implementations of various algorithms and data structures, ideal for beginners learning algorithmic concepts.
    • Key features include a wide range of algorithms covering sorting, searching, cryptography, and data structures, following best coding practices and standard.js style.
    • Strengths are its educational focus, extensive community contributions, and active maintenance; limitations include lack of performance optimization and no API stability guarantees.
    • Organizations can use it as a learning resource or reference for algorithm implementation but should avoid using it directly in production for performance-critical applications.
    • Ideal use cases include educational purposes, coding practice, algorithm study, and contributing to open-source algorithm implementations in JavaScript.

    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