First, know your goals. If your goal is employment learn JavaScript in the most declarative style possible. If you are wanting employment in a Java shop learn Angular framework plus some TypeScript, otherwise learn React and Next.js.
If, on the other hand, you want to write original web applications outside of corporate employment completely ignore the previous paragraph.
Instead learn the DOM and events. Get a solid comfort for those before ever touching JavaScript. This will help with everything from architecture, accessibility, performance, test automation, faster code authoring, and on and on. Then start learning JavaScript in a highly imperative and explicit style as this will help with maintenance, organization, and documentation. Never program using the “this” keyword and instead realize that functions and basic organization skills are enough to achieve great architectures that scale with ease. Do not be afraid of lexical scope, it’s your friend. Then slide into TypeScript to up your architecture game to the next level.
Understand that this advice for personal development will make you a superior developer and simultaneously unemployable because nobody else will share these insights, perspectives, or experiences.