---
title: "Discussion on \"Recursion\" | Hashnode"
description: "Discussion on \"Recursion\". Describing an action in terms of itself\nWhy we use recursion\n\nTasks that are composed of similar subtasks\n\nShorter code (which may be easier)\n\nNested loops can be avoided.\n\n\nSee an example:\nfunction recursion(){\n// base case\nif(anyBaseCase()){\nreturn..."
url: "https://hashnode.com/posts/recursion/667d9e08ec0b44ac69159dcc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Recursion](https://nikhilkumar007.hashnode.dev/recursion?utm_source=hashnode&utm_medium=feed)

Describing an action in terms of itself Why we use recursion Tasks that are composed of similar subtasks Shorter code (which may be easier) Nested loops can be avoided. See an example: function recursion(){ // base case if(anyBaseCase()){ return...

Jun 27, 2024 · 1 min read · nikhilkumar007.hashnode.dev  
Updated Jan 12  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[nikhil](https://hashnode.com/@NikhilKumar007)

@NikhilKumar007 · India

  
[View profile](https://hashnode.com/@NikhilKumar007)

hello world

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
