The quickest way to learn JavaScript (and JavaScript frameworks)
I constantly hear from people who want to learn frameworks (like Angular, React, and Vue) without having mastered their JavaScript fundamentals.
When I ask them what’s their skill level with JavaScript, they admit they should probably learn JavaScript first, before learning frameworks, but they don’t.
It’s crazy.
I understand your desire to learn JavaScript fast. You want to build interactive components and amazing applications, but don’t you think you’re skipping some major steps?
Imagine driving a F1 without the ability to turn the steering wheel properly, without knowing how to shift gears, without having a driver’s license. Can you imagine how badly you’d crash?
Pretty badly, huh?
If you want to learn frameworks, the quickest way is to learn foundational Javascript first. Once you know Javascript like the back of your hand, you’ll be able to learn any framework quickly—Angular, React, Vue, you name it.
The quickest way to learn Javascript
To learn Javascript quickly, you need to know three things.
1. How would you rate your level of experience with JavaScript?
Are you a complete beginner at JavaScript? Do you only know how to copy-paste code? Or are you comfortable with writing JavaScript components from scratch?
Where you’re at determines what “level” of stuff you try to learn. If you learn something too simple, you’ll get bored. If you learn something too advanced, you’ll get overwhelmed.
But, just knowing where you are isn’t enough. You don’t have a map of what to learn, which is why you’re stuck in the first place.
This brings us to the next thing:
2. Where do you want to get to?
People learn JavaScript for different reasons.
If you’re trying to make your website more interactive, what you need to learn is completely different from another person who’s trying to develop a web application.
So you need to know what you want to learn. You need something we’ve already talked about—a goal.
Once you know your goal, you can work backwards and list the things you need to learn to get there. This list is your learning map.
Use it, learn one thing at a time, until you complete when you set out to learn. Then, repeat the process and learn something new.
Note: your end goal needs to be concrete. It cannot be an abstract target like “learn enough to get hired”. If you use that as a target, you’ll remain lost since everyone hires differently.
Don’t sabotage yourself by using a target set by someone else.
Now, for the last thing:
3. What’s the shortest path between these two points?
The learning map you’ve created will consist of winding paths. You won’t know what winding paths you’ve created. You won’t know if there are any hidden straight paths to get to where you want to be even faster than the list you’ve created.
This is expected. You’re charting your way into unknown territory.
You won’t know if paths are straight or winding because you don’t know what you don’t know. There can be a shorter path between your two points, but you can’t see it.
This is where a mentor can come in and help.
The mentor went through the path you’re trying to take. They know the landscape better than you. If you have a mentor, consult them. Ask them how to get to where you want to be.
If you lack a mentor, it’s okay too. Here’s where I can come in to help.
How I view learning JavaScript
Learning JavaScript is very much like growing up. There are different phases of growth. You can view it in the following four phases:
- The Baby Phase
- The Child Phase
- The Teenage Phase
- The Adult Phase
The Baby Phase
If you’re starting out with JavaScript, you’re in the Baby Phase. You’re clueless about JavaScript. The syntax looks foreign.
What you should focus on in this phase is to thoroughly learn the JavaScript syntax so you know what others are talking about when they say things like objects, arrays, functions, etc.
The Child Phase
You’re in the Child Phase if you’re already comfortable with basic JavaScript syntax. At this stage, you don’t know how to build things from scratch yet.
You often need help. Maybe you can copy-paste and modify something after hours of googling, but you’re still not confident in your JavaScript skills. You don’t know how the Document Object Model (DOM) works. You don’t know how to build things from scratch.
In this phase, focus on learning methods provided to you by the DOM. Learn about selecting elements, traversing the DOM, adding and removing things from the DOM, adding and removing event listeners, changing styles and classes.
Try building simple things like accordions. Maybe even showing a menu when a button gets clicked. It’s okay to copy-paste at first, but make sure write your component from scratch afterward so you understand the underlying mechanics.
The Teenage Phase
You’re in the Teenage Phase if you already know how to build stuff from scratch. You’re somewhat confident you’ll be able to build anything DOM related, but you still can’t do them with a snap of your fingers.
Your code may be messy and unorganized. It may lack best practices, but at least you got things working.
The next step is to learn best practices from books and experts all around. Absorb what you can, then, rebuild what you’ve built. Use the new practices you’ve learned to internalize them.
This is also where you’ll want to begin looking at object oriented programming (OOP) and functional programming (FP). You’d also want to start learning about querying APIs from places like Github and Twitter.
The Adult Phase
In the Adult Phase, you know enough JavaScript to be dangerous. You can build almost anything you want. You’re confident with your code; it’s clean. You know the best practices and you’ve used them all. Now it’s time to leave the nest and look for something new, something related.
Here, you have a few options:
- You can learn a frontend framework (like Angular, Vue or React).
- You can learn Node to build a backend.
- You can dive even deeper into JavaScript.
Choose any option you want. What you choose depends on where you want to get to.
If you choose to learn a frontend framework, you’ll be able to build complicated web applications that can take a ton of work if you tried building the same thing with pure JavaScript.
If you choose to learn Node, you’ll start your journey towards a full-stack developer. Here, you have to learn about databases and server configuration at the same time (which means you need to learn more than just Javascript).
If you choose to dive deeper into JavaScript, you’ll learn how to write better, cleaner code. Eventually, it will help you better at both Node or any JavaScript framework you intend to pick up.
What’s your game plan?
Where are you with regards to JavaScript? Are you in the Baby, Child, Teenage or Adult phase?
Where do you want to get to? Answer this question by stating your goal, not the phase you want to get to, because the stating a phase is still hazy. What’s your concrete goal?
And finally, what’s your game plan? How are you going to get from where you are to where to where you want to be? Are you going to read JavaScript books? Buy courses to help you out? Or try to learn everything on your own by piecing together information from various articles? Be specific.
Hit reply and let me know. I read every reply, and I respond to as many as I can.
Tomorrow, I’ll send you some links to help you get started with JavaScript basics. Look forward to it :)
Stay awesome,
Zell
PS: I’m releasing a new course—Learn JavaScript—that’ll help you get through Baby, Child and Teenage phases. You’ll learn to code things from scratch, build interactive components and build webapps without using any frameworks.
I’ll share more about Learn Javascript with you soon.