Also, would there be any good resources to help me better think like a programmer? A lot of the questions on freecodecamp are worded in such a way that I’m having a hard time understanding what is actually being asked.
It’s hard stuff though - JS is harder than HTML. If you don’t know what a question is asking you to do, that’s a great time to ask a question on the forum. Converting a written description into a list of things that need to become code is a hard skill in itself.
I know how you link html to css. You could do it like this for example…with a link rel and an href.
In the most basic case, you can write your JS inside a script tag.
But if you write your JS in another file, you can set the
Thanks! That makes sense. How did you link it in your counter? Asking because I don’t think I saw the script tag in there.
Ah, CodePen does all the linking between your HTML, CSS, and JS for you behind the scenes… Which is convenient for the kind of stuff you write on CodePen, but not very helpful for a learning beginner, huh.
Here’s what the HTML it spits out could look like (assuming the CSS editor’s contents are in a file called “styles.css” and the JS editor’s contents are in a file called “script.js”):
<link href="styles.css" rel="stylesheet">
...all the stuff inside the HTML editor...
That makes sense. Thanks for clarifying!