stupied
2 months 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.neocities.org/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
Hey twin what I do is have an empty page template with all the header stuff and nav stuff that i can jump right into! iframes are also a great idea like cyberdreamz stated! in fact, i use it to make my blogging easy and fast :)