[{"data":1,"prerenderedAt":116},["ShallowReactive",2],{"term-d\u002Fdynamic-typing":3,"related-d\u002Fdynamic-typing":102},{"id":4,"title":5,"acronym":6,"body":7,"category":83,"description":84,"difficulty":85,"extension":86,"letter":87,"meta":88,"navigation":89,"path":90,"related":91,"seo":96,"sitemap":97,"stem":100,"subcategory":6,"__hash__":101},"terms\u002Fterms\u002Fd\u002Fdynamic-typing.md","Dynamic Typing",null,{"type":8,"value":9,"toc":77},"minimark",[10,15,19,23,26,30,66,70,73],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"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. The box figures out what's inside when you actually put something in. Python and JavaScript do this.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"In dynamically typed languages, variable types are checked at runtime rather than compile time. A variable can hold a string, then a number, then an object without any explicit type declaration. This offers flexibility at the cost of catching type errors later.",[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-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Python — no type declaration needed\nx = 42\nx = \"now I'm a string\"\nx = [1, 2, 3]\n","python","",[38,39,40,48,54,60],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"# Python — no type declaration needed\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"x = 42\n",[41,55,57],{"class":43,"line":56},3,[41,58,59],{},"x = \"now I'm a string\"\n",[41,61,63],{"class":43,"line":62},4,[41,64,65],{},"x = [1, 2, 3]\n",[11,67,69],{"id":68},"when-youll-hear-this","When You'll Hear This",[16,71,72],{},"\"Python uses dynamic typing so you don't need to declare types.\" \u002F \"Dynamic typing makes prototyping fast but can hide bugs.\"",[74,75,76],"style",{},"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":50,"depth":50,"links":78},[79,80,81,82],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":68,"depth":50,"text":69},"general","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.","intermediate","md","d",{},true,"\u002Fterms\u002Fd\u002Fdynamic-typing",[92,93,94,95],"Type Inference","Generic","Interface","Variable",{"title":5,"description":84},{"changefreq":98,"priority":99},"weekly",0.7,"terms\u002Fd\u002Fdynamic-typing","xSWkaAw4UmWtDwyTQO2OOCT8i_6Wdg2jg-7CjnD6Obc",[103,106,109,112],{"title":93,"path":104,"acronym":6,"category":83,"difficulty":85,"description":105},"\u002Fterms\u002Fg\u002Fgeneric","A generic is like a recipe that works for any ingredient.",{"title":94,"path":107,"acronym":6,"category":83,"difficulty":85,"description":108},"\u002Fterms\u002Fi\u002Finterface","An interface is like a job description. It says 'whatever fills this role must be able to do X, Y, and Z' without caring how they do it.",{"title":92,"path":110,"acronym":6,"category":83,"difficulty":85,"description":111},"\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.",{"title":95,"path":113,"acronym":6,"category":83,"difficulty":114,"description":115},"\u002Fterms\u002Fv\u002Fvariable","beginner","A variable is a named box where you store information.",1776518275708]