[{"data":1,"prerenderedAt":199},["ShallowReactive",2],{"term-r\u002Fruntime":3,"related-r\u002Fruntime":184},{"id":4,"title":5,"acronym":6,"body":7,"category":165,"description":166,"difficulty":167,"extension":168,"letter":169,"meta":170,"navigation":60,"path":171,"related":172,"seo":178,"sitemap":179,"stem":182,"subcategory":6,"__hash__":183},"terms\u002Fterms\u002Fr\u002Fruntime.md","Runtime",null,{"type":8,"value":9,"toc":159},"minimark",[10,15,19,23,26,30,148,152,155],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Runtime is the environment where your code actually runs. It is everything your program needs to execute — like the backstage crew that makes a show possible. Node.js is a JavaScript runtime: it gives JavaScript the power to run outside the browser. 'At runtime' means 'while the program is actually running'.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A runtime (or runtime environment) is the infrastructure that executes compiled or interpreted code. It provides services like memory management, garbage collection, I\u002FO access, and standard library functions. Examples include the Node.js runtime for JavaScript, the JVM for Java\u002FKotlin, and the .NET CLR for C#. 'Runtime error' means an error that occurs during execution, not compilation.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Node.js is a JavaScript runtime:\n\u002F\u002F It lets JS run on a server, not just a browser.\n\n\u002F\u002F Runtime error example:\nconst obj = null;\nobj.name; \u002F\u002F TypeError at RUNTIME — not caught by compiler\n\n\u002F\u002F vs. compile-time error (TypeScript):\nconst x: number = \"hello\"; \u002F\u002F Error BEFORE running\n","javascript","",[38,39,40,49,55,62,68,86,104,109,115],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","\u002F\u002F Node.js is a JavaScript runtime:\n",[41,50,52],{"class":43,"line":51},2,[41,53,54],{"class":47},"\u002F\u002F It lets JS run on a server, not just a browser.\n",[41,56,58],{"class":43,"line":57},3,[41,59,61],{"emptyLinePlaceholder":60},true,"\n",[41,63,65],{"class":43,"line":64},4,[41,66,67],{"class":47},"\u002F\u002F Runtime error example:\n",[41,69,71,75,79,83],{"class":43,"line":70},5,[41,72,74],{"class":73},"spNyl","const",[41,76,78],{"class":77},"sTEyZ"," obj ",[41,80,82],{"class":81},"sMK4o","=",[41,84,85],{"class":81}," null;\n",[41,87,89,92,95,98,101],{"class":43,"line":88},6,[41,90,91],{"class":77},"obj",[41,93,94],{"class":81},".",[41,96,97],{"class":77},"name",[41,99,100],{"class":81},";",[41,102,103],{"class":47}," \u002F\u002F TypeError at RUNTIME — not caught by compiler\n",[41,105,107],{"class":43,"line":106},7,[41,108,61],{"emptyLinePlaceholder":60},[41,110,112],{"class":43,"line":111},8,[41,113,114],{"class":47},"\u002F\u002F vs. compile-time error (TypeScript):\n",[41,116,118,120,123,126,130,133,136,140,143,145],{"class":43,"line":117},9,[41,119,74],{"class":73},[41,121,122],{"class":77}," x",[41,124,125],{"class":81},":",[41,127,129],{"class":128},"sBMFI"," number",[41,131,132],{"class":81}," =",[41,134,135],{"class":81}," \"",[41,137,139],{"class":138},"sfazB","hello",[41,141,142],{"class":81},"\"",[41,144,100],{"class":81},[41,146,147],{"class":47}," \u002F\u002F Error BEFORE running\n",[11,149,151],{"id":150},"when-youll-hear-this","When You'll Hear This",[16,153,154],{},"\"That error only appears at runtime.\" \u002F \"Node is the runtime, npm is the package manager.\"",[156,157,158],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":160},[161,162,163,164],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":150,"depth":51,"text":151},"general","Runtime is the environment where your code actually runs.","intermediate","md","r",{},"\u002Fterms\u002Fr\u002Fruntime",[173,174,175,176,177],"Interpreter","Compiler","Runtime Error","Node.js","JVM",{"title":5,"description":166},{"changefreq":180,"priority":181},"weekly",0.7,"terms\u002Fr\u002Fruntime","-lAOl85TSuq3D7Y3jdu60C0o6Pj1HYa0CDsXLfKb_3k",[185,188,191,196],{"title":174,"path":186,"acronym":6,"category":165,"difficulty":167,"description":187},"\u002Fterms\u002Fc\u002Fcompiler","A compiler is like a translator that reads your entire code book, converts it all into a language the CPU understands, and hands you the finished translate...",{"title":173,"path":189,"acronym":6,"category":165,"difficulty":167,"description":190},"\u002Fterms\u002Fi\u002Finterpreter","An interpreter reads your code and runs it line by line in real time, like a live translator at a conference.",{"title":176,"path":192,"acronym":6,"category":193,"difficulty":194,"description":195},"\u002Fterms\u002Fn\u002Fnode-js","backend","beginner","Node.js lets you run JavaScript on the server — not just in the browser. Before Node.js, JavaScript was trapped in the browser.",{"title":175,"path":197,"acronym":6,"category":165,"difficulty":194,"description":198},"\u002Fterms\u002Fr\u002Fruntime-error","A runtime error is one that only shows up when your program is actually running, not before.",1776518309272]