<div>
  <h3>RangeError Demo</h3>
  <p>Open the console (F12) to see the error in action.</p>
  <p>Learn how to fix this error! Visit my blog: <a href="https://www.devsky.net/2025/03/fix-javascript-rangeerror-maximum-call.html" target="_blank" style="color: #1976d2; text-decoration: none;">Fix RangeError Guide</a></p>
</div>
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #f5f5f5;
}
h3 {
  color: #d81b60;
}
p {
  color: #424242;
}
// This will trigger "RangeError: Maximum call stack size exceeded"
function infiniteLoop() {
  infiniteLoop();
}
infiniteLoop();

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.