{"version":"1.0","type":"rich","title":"heavy-computation-settimeout.js","description":"This animation demonstrates how a long-running computation can be broken into chunks without freezing the event loop. The code repeatedly computes the sum of even numbers up to 199,999,999, processing one million numbers per iteration via a `setTimeout` callback to yield control. A separate `setInterval` logs \"I'm alive!!\" every 200 milliseconds, proving the process remains responsive. The script uses plain JavaScript timers and a recursive `getSum` function, with progress logged to the console and timing measured via `console.time` and `console.timeEnd`.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-a09d041ad84d9cb0b7b8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}