{"version":"1.0","type":"rich","title":"heavy-computation.js","description":"This example demonstrates the blocking behavior of a single-threaded JavaScript event loop. A heavy computation—summing all even numbers up to 199,999,999—runs synchronously inside `displaySum`, which prevents a concurrent `setInterval` callback from logging \"I'm alive!!\" every 200 milliseconds. The code measures the sum’s duration with `console.time` and `console.timeEnd`, showing that the interval remains silent until the loop finishes. It highlights the challenge of keeping a UI or process responsive during CPU-intensive tasks, a limitation relevant to both browsers and Node.js.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-52d7b1bccd6589569709?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}