Answers for "jquery.min.js:689 Uncaught RangeError: Maximum call stack size exceeded"

-1

jquery.min.js:689 Uncaught RangeError: Maximum call stack size exceeded

.on('touchstart.dropdown.data-api', '.dropdown-menu', function (e) { e.stopPropagation() })
Posted by: Guest on November-05-2020
-1

Uncaught RangeError: Maximum call stack size exceeded

// Can be caused by a large recursive function, i.e:

function fibonacci(num){
    if (num === 1) 
    {
        return [0, 1]
    } 
    else 
    {
        var s = fibonacci(num - 1)
        s.push(s[s.length - 1] + s[s.length - 2])
        return s
    }
};

fibonacci(20000)[20000]

// In which case, the fix is to make it non-recursive if possible
Posted by: Guest on May-17-2021

Code answers related to "jquery.min.js:689 Uncaught RangeError: Maximum call stack size exceeded"

Code answers related to "Javascript"

Browse Popular Code Answers by Language