A tip I forgot to give: Use the debugger very early while learning JS, it's very helpful to understand what the code is doing.
How good have you found ChatGPT to be?
It's great for snippets, or explaining simple code.
It does fail often when hitting deep in some API, or when you want to do thing in a specific way because you know what you are doing.
You have to talk a lot to it, if you want it to produce code for you.
But in your case, i recommend to never copy paste JS from ChatGPT, because it's your first programming language (html and css are not programming language), and making your brain used to code will be the most important thing
I said to not copy, but you can ask questions to it, and it will be often correct, dont hesitate to send big chunks of your own code to chatgpt to get explanations.