Maximum Call Stack Size Exceeded

Also, if you do need the recursion in your function, I’d recommend taking a look at this tutorial for how to break the loop effectively:

2 Likes