[{"data":1,"prerenderedAt":166},["ShallowReactive",2],{"term-v\u002Fvariable":3,"related-v\u002Fvariable":151},{"id":4,"title":5,"acronym":6,"body":7,"category":132,"description":133,"difficulty":134,"extension":135,"letter":136,"meta":137,"navigation":138,"path":139,"related":140,"seo":145,"sitemap":146,"stem":149,"subcategory":6,"__hash__":150},"terms\u002Fterms\u002Fv\u002Fvariable.md","Variable",null,{"type":8,"value":9,"toc":126},"minimark",[10,15,19,23,38,42,115,119,122],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A variable is a named box where you store information. You put a number or a word in the box, give the box a name, and then you can grab it later by that name. The value inside can change — that's why it's called a VAR-iable.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25,26,30,31,30,34,37],{},"A variable is a named storage location in memory that holds a value. In most languages you declare a variable with a keyword (",[27,28,29],"code",{},"let",", ",[27,32,33],{},"var",[27,35,36],{},"int","), a name, and optionally an initial value. Its value can be reassigned throughout the program's execution.",[11,39,41],{"id":40},"show-me-the-code","Show Me The Code",[43,44,49],"pre",{"className":45,"code":46,"language":47,"meta":48,"style":48},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","let score = 0;\nscore = score + 10;\nconsole.log(score); \u002F\u002F 10\n","javascript","",[27,50,51,74,92],{"__ignoreMap":48},[52,53,56,59,63,67,71],"span",{"class":54,"line":55},"line",1,[52,57,29],{"class":58},"spNyl",[52,60,62],{"class":61},"sTEyZ"," score ",[52,64,66],{"class":65},"sMK4o","=",[52,68,70],{"class":69},"sbssI"," 0",[52,72,73],{"class":65},";\n",[52,75,77,80,82,84,87,90],{"class":54,"line":76},2,[52,78,79],{"class":61},"score ",[52,81,66],{"class":65},[52,83,62],{"class":61},[52,85,86],{"class":65},"+",[52,88,89],{"class":69}," 10",[52,91,73],{"class":65},[52,93,95,98,101,105,108,111],{"class":54,"line":94},3,[52,96,97],{"class":61},"console",[52,99,100],{"class":65},".",[52,102,104],{"class":103},"s2Zo4","log",[52,106,107],{"class":61},"(score)",[52,109,110],{"class":65},";",[52,112,114],{"class":113},"sHwdD"," \u002F\u002F 10\n",[11,116,118],{"id":117},"when-youll-hear-this","When You'll Hear This",[16,120,121],{},"\"Store the user's name in a variable.\" \u002F \"That variable is being mutated in three different places.\"",[123,124,125],"style",{},"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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .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":48,"searchDepth":76,"depth":76,"links":127},[128,129,130,131],{"id":13,"depth":76,"text":14},{"id":21,"depth":76,"text":22},{"id":40,"depth":76,"text":41},{"id":117,"depth":76,"text":118},"general","A variable is a named box where you store information.","beginner","md","v",{},true,"\u002Fterms\u002Fv\u002Fvariable",[141,142,143,144],"Constant","Dynamic Typing","Type Inference","Scope Creep",{"title":5,"description":133},{"changefreq":147,"priority":148},"weekly",0.7,"terms\u002Fv\u002Fvariable","Fh7ghAZZJIuQesICXvsEDwaEpPEhSKxtErz7LKP36o0",[152,155,159,163],{"title":141,"path":153,"acronym":6,"category":132,"difficulty":134,"description":154},"\u002Fterms\u002Fc\u002Fconstant","A constant is a box you seal shut after putting something in. You can look inside any time you want, but you can't swap out what's in there.",{"title":142,"path":156,"acronym":6,"category":132,"difficulty":157,"description":158},"\u002Fterms\u002Fd\u002Fdynamic-typing","intermediate","Dynamic typing is like a box that can hold anything — toys, food, or a cat — and you don't have to label what goes in it ahead of time.",{"title":144,"path":160,"acronym":6,"category":161,"difficulty":134,"description":162},"\u002Fterms\u002Fs\u002Fscope-creep","vibecoding","Scope creep is when a simple feature request slowly grows into rebuilding the entire application.",{"title":143,"path":164,"acronym":6,"category":132,"difficulty":157,"description":165},"\u002Fterms\u002Ft\u002Ftype-inference","Type inference is the compiler being smart enough to figure out what type something is without you having to spell it out.",1776518321750]