JavaScript
JavaScript copied to clipboard
Divisors.js
I have added a file for computing all unique divisors of a number in javascript in Maths folder. Please merge my PR.
I have made the necessary changes and sent you a pull request. Please merge it.
On Thu, Oct 5, 2023 at 1:43 PM Gaurav Giri @.***> wrote:
@.**** requested changes on this pull request.
The algorithm implementation looks good to me. However, there are few suggestions I would like to provide:
- The function name is printDivisors(), but it doesn't prints anything, just returns a list of divisors. I suggest to change it to something like getDivisors().
- Change variable name into something meaningful .
- Also add documentations comment.
— Reply to this email directly, view it on GitHub https://github.com/TheAlgorithms/JavaScript/pull/1435#pullrequestreview-1659178439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWWATJMLHEVSVWCTYGMGHFLX5ZT3NAVCNFSM6AAAAAA5TCI7SGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTMNJZGE3TQNBTHE . You are receiving this because you authored the thread.Message ID: @.***>
Please merge PR #1435 if it's fine.
I have made the necessary changes in Divisors.js. Please review it.
I have made the necessary changes in Divisors.js. Please review it.
It's still missing tests.