The Call Stack_

The Call Stack_
0

#1

I have a error : RangeError: Maximum call stack size exceeded. Can someone explain this error ? Thanks

function chicken() {
   return egg();
 }
 function egg() {
   return chicken();
 }
console.log(chicken() + " came first."); // → ??

#2

Your code attempts to run forever, but the stack is only so large, so eventually you max it out. Because each function calls the other function, this continues until the stack is maxed out.