function firstFunction(){
throw new Error('Stack Trace Error');
}
function secondFunction(){
firstFunction();
}
function thirdFunction(){
secondFunction();
}
thirdFunction();
https://www.freecodecamp.org/news/understanding-the-javascript-call-stack-861e41ae61d4