JavaScript icon indicating copy to clipboard operation
JavaScript copied to clipboard

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

Results 202 JavaScript issues
Sort by recently updated
recently updated
newest added

**Description** The [`DIRECTORY.md`](https://github.com/TheAlgorithms/JavaScript/blob/master/.github/workflows/UpdateDirectory.yml) workflow isn't committing/pushing any needed changes due to the `master` branch being protected. Currently, there's no way to make GitHub Actions have access to a protected branch....

bug

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - Added volume of torus algorithm to Volume.js - [x] Add an algorithm? - [ ] Fix a bug or typo in...

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...

stale

traverseDFS() is not working properly , while logging it says [ undefined ]. and there is also an issue with searchDFS() function, the following issue i have faced The stack...

### Description tarverseDFS function is not working ### Expected Behavior tarverseDFS function should traverse the tree ### Actual Behavior In tarverseDFS function , the res array ia empty or undefined...

bug

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [ ] Add an algorithm? - [x] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...

I propose a built-in JavaScript function which is ```sum()``` that sum all the lengths of an array. ``` let sum = (y) => { let sum = 0; for(r=0; r

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) [know more](https://www.gitpod.io/docs/pull-requests/) ### Describe your change: - [x] Add an algorithm? - [ ] Fix a bug or typo in an existing algorithm? - [ ] Documentation change?...

stale