---
title: "Discussion on \"Recursive functions don't casue stack overflow  in JS\" | Hashnode"
description: "Discussion on \"Recursive functions don't casue stack overflow  in JS\". Stack Overflow\nRecursive functions can cause a stack overflow if they call themselves too many times and exceed the stack size limit.\nA classic example of a recursive function that can exceed the stack size limit if called with a large input is the n..."
url: "https://hashnode.com/posts/recursive-functions-dont-casue-stack-overflow-in-js/65ae2dc3d94805e5634364c5"
---

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

Discussion

# [Recursive functions don't casue stack overflow in JS](https://blog.iread.fun/recursive-functions-dont-casue-stack-overflow-in-js?utm_source=hashnode&utm_medium=feed)

Stack Overflow Recursive functions can cause a stack overflow if they call themselves too many times and exceed the stack size limit. A classic example of a recursive function that can exceed the stack size limit if called with a large input is the n...

Jan 22, 2024 · 2 min read · blog.iread.fun  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#recursive-function](https://hashnode.com/tag/recursive-function)
-   [#asynchronous-javascript](https://hashnode.com/tag/asynchronous-javascript)
-   [#tail-call-optimization](https://hashnode.com/tag/tail-call-optimization)
-   [#call-stack](https://hashnode.com/tag/call-stack)

## Written by

[v like](https://hashnode.com/@likev)

@likev

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
