stupied
5 days ago
Not sure if this is helpful, but variables are basically like containers. they label and store data! javascript data can either be primitive (like numbers or words) or non-primitive (like lists or html elements). They're useful for when you (1) don't know what your going to put into it yet or (2) need to constantly reuse a value. wishing you the bestest of luck to figure it out x]
you can use iframes for that, that's what i do on my website! alternatively you can use a script that automatically adds the needed elements to the page, here's a tutorial: https://petrapixel.yorniq.xyz/coding/layout-base-code. there's also static site generators, but that's a bit more complicated to set up, petrapixel has a tutorial for that too