# Maximum call stack size exceeded in js This is an error code in [[JavaScript|js]] that indicates a recursive function that calls itself repeatedly. There is a very high limit to the number of times that a function can call itself before an error is triggered. Sometimes, this error can be fixed by including a `return` statement within a function so that a function's execution is finished. [^airbrake] [^airbrake]: Airbrake. (2021). _JavaScript Error Handling: Maximum Call Stack Size Exceeded_. Retrieved from https://airbrake.io/blog/javascript-error-handling/javascript-error-handling-maximum-call-stack-size-exceeded