

Work on your own projects and it will come naturally, it’s the best way to thoroughly learn a language (probably JS in your case). Try to really understand the basics (like OOP), it’s knowledge which will both translate to other languages and help you learn frameworks/libraries. Instead of relying solely on tutorials, try reading the documentation, it will give you a more thorough understanding (if it’s good), also stack overflow isn’t cheating, you can’t always remember everything. Trust me, you are already way ahead of others if you plan to take CS.
We never really needed it, it arose naturally when people began to question the nature of their reality and other people realized they can gain political power by giving them “answers”.