{"id":22979172,"url":"https://github.com/besufekad-haz/recursion-challenge","last_synced_at":"2025-07-12T08:06:50.544Z","repository":{"id":162516322,"uuid":"618303709","full_name":"Besufekad-HAZ/Recursion-challenge","owner":"Besufekad-HAZ","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-24T07:36:56.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T05:39:43.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Besufekad-HAZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-24T07:18:24.000Z","updated_at":"2023-06-19T07:50:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a28baaf-4d61-43d6-8fe5-c9184f23eafc","html_url":"https://github.com/Besufekad-HAZ/Recursion-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Besufekad-HAZ/Recursion-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Besufekad-HAZ%2FRecursion-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Besufekad-HAZ%2FRecursion-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Besufekad-HAZ%2FRecursion-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Besufekad-HAZ%2FRecursion-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Besufekad-HAZ","download_url":"https://codeload.github.com/Besufekad-HAZ/Recursion-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Besufekad-HAZ%2FRecursion-challenge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264958623,"owners_count":23689035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T01:24:09.173Z","updated_at":"2025-07-12T08:06:50.529Z","avatar_url":"https://github.com/Besufekad-HAZ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## How to solve this challenge?\n\n1. Read the \"Challenge description\" below.\n2. Make changes to the [challenge.js](./challenge.js) file.\n3. Commit your changes.\n4. Wait for the result of the \"GitHub Classroom Workflow\" action. If it is green - congratulations, you solved this challenge! If not - try again!\n5.  *You can watch an example of how to solve a challenge in the video linked in the theoretical lesson preceding this challenge.*\n\n\n## Challenge description\n\n### Basic Recursion\n\nYou will be given a positive integer number. Fill in the method sum so that it adds up all the positive integers up to number and returns the sum.\nFor example, when given 4 it should return 10 (4+3+2+1).\n\nWhile there are other ways to solve this challenge, you should use recursion to get the sum.\n\n#### Examples\n\n```js\nconsole.log(sum(4))\n// =\u003e (4 + 3 + 2 + 1) = 10\n\nconsole.log(sum(10))\n// =\u003e 55\n```\n\nGet stuck and need some hint?\nCheck this link: https://gitlab.com/microverse/guides/coding_challenges/hints/blob/master/challenges/recursion/basic-recursion.md\n\n\n### Troubleshooting\n\nIf you cannot see any auto-grading workflows on the [Actions](../../actions) page, learn how to fix it in [this repo](https://github.com/microverse-students/autograding-troubles-js/blob/main/README.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesufekad-haz%2Frecursion-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbesufekad-haz%2Frecursion-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbesufekad-haz%2Frecursion-challenge/lists"}