[{"data":1,"prerenderedAt":195},["ShallowReactive",2],{"term-a\u002Fargument":3,"related-a\u002Fargument":182},{"id":4,"title":5,"acronym":6,"body":7,"category":164,"description":165,"difficulty":166,"extension":167,"letter":168,"meta":169,"navigation":121,"path":170,"related":171,"seo":176,"sitemap":177,"stem":180,"subcategory":6,"__hash__":181},"terms\u002Fterms\u002Fa\u002Fargument.md","Argument",null,{"type":8,"value":9,"toc":158},"minimark",[10,15,19,23,26,30,147,151,154],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"An argument is the actual value you hand to a function when you call it. If a function is a coffee machine and it needs beans and water, the specific beans and the specific water you pour in are the arguments. You're giving it the real things.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"An argument is the actual value passed to a function at call time. It is often confused with 'parameter' — parameters are the names in the function definition; arguments are the values provided when calling it. Some languages support named, default, and variadic arguments.",[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-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","function greet(name: string) { \u002F\u002F 'name' is the parameter\n  return `Hello, ${name}!`;\n}\n\ngreet(\"Alice\"); \u002F\u002F \"Alice\" is the argument\n","typescript","",[38,39,40,78,110,116,123],"code",{"__ignoreMap":36},[41,42,45,49,53,57,61,64,68,71,74],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"spNyl","function",[41,50,52],{"class":51},"s2Zo4"," greet",[41,54,56],{"class":55},"sMK4o","(",[41,58,60],{"class":59},"sHdIc","name",[41,62,63],{"class":55},":",[41,65,67],{"class":66},"sBMFI"," string",[41,69,70],{"class":55},")",[41,72,73],{"class":55}," {",[41,75,77],{"class":76},"sHwdD"," \u002F\u002F 'name' is the parameter\n",[41,79,81,85,88,92,95,98,101,104,107],{"class":43,"line":80},2,[41,82,84],{"class":83},"s7zQu","  return",[41,86,87],{"class":55}," `",[41,89,91],{"class":90},"sfazB","Hello, ",[41,93,94],{"class":55},"${",[41,96,60],{"class":97},"sTEyZ",[41,99,100],{"class":55},"}",[41,102,103],{"class":90},"!",[41,105,106],{"class":55},"`",[41,108,109],{"class":55},";\n",[41,111,113],{"class":43,"line":112},3,[41,114,115],{"class":55},"}\n",[41,117,119],{"class":43,"line":118},4,[41,120,122],{"emptyLinePlaceholder":121},true,"\n",[41,124,126,129,131,134,137,139,141,144],{"class":43,"line":125},5,[41,127,128],{"class":51},"greet",[41,130,56],{"class":97},[41,132,133],{"class":55},"\"",[41,135,136],{"class":90},"Alice",[41,138,133],{"class":55},[41,140,70],{"class":97},[41,142,143],{"class":55},";",[41,145,146],{"class":76}," \u002F\u002F \"Alice\" is the argument\n",[11,148,150],{"id":149},"when-youll-hear-this","When You'll Hear This",[16,152,153],{},"\"Pass the user ID as an argument.\" \u002F \"The function takes three arguments: start, end, and step.\"",[155,156,157],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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 .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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":80,"depth":80,"links":159},[160,161,162,163],{"id":13,"depth":80,"text":14},{"id":21,"depth":80,"text":22},{"id":28,"depth":80,"text":29},{"id":149,"depth":80,"text":150},"general","An argument is the actual value you hand to a function when you call it.","beginner","md","a",{},"\u002Fterms\u002Fa\u002Fargument",[172,173,174,175],"Parameter","Function","Return Value","Method",{"title":5,"description":165},{"changefreq":178,"priority":179},"weekly",0.7,"terms\u002Fa\u002Fargument","z3ZJmBRcJvqGBzzyO8BxPfIhitcEM_38qkt3Bj-kHgg",[183,186,189,192],{"title":173,"path":184,"acronym":6,"category":164,"difficulty":166,"description":185},"\u002Fterms\u002Ff\u002Ffunction","A function is a reusable recipe. You write the steps once, give it a name, and call it whenever you need those steps done.",{"title":175,"path":187,"acronym":6,"category":164,"difficulty":166,"description":188},"\u002Fterms\u002Fm\u002Fmethod","A method is just a function that belongs to an object or class. Your Dog object has a bark() method — it's the dog's personal function.",{"title":172,"path":190,"acronym":6,"category":164,"difficulty":166,"description":191},"\u002Fterms\u002Fp\u002Fparameter","A parameter is the placeholder name inside a function definition — it's the label on the slot where you plug things in.",{"title":174,"path":193,"acronym":6,"category":164,"difficulty":166,"description":194},"\u002Fterms\u002Fr\u002Freturn-value","A return value is what a function hands back to you after doing its work. You send a coffee machine beans and water, it returns coffee.",1776518255989]