You’re in the late Teenage Phase if you can build many things you want with JavaScript (at least if they’re just on the DOM).
You can’t build everything yet, but you’re pretty confident that you can figure them out as you go along.
If you’re at this stage, congratulations! You’re out of the “beginner developer” phase that many people can’t get past.
You’re now in the intermediate phase where all fun and games begin.
Deciding what to play with
You’re good enough to explore in the Teenage Phase. So there’s no need to stick to one curriculum anymore.
Here are a few topics you can explore.
- Animations
- Fancy effects like Mouse and Scroll movements
- Keyboard and accessibility
- Date and Time
- Using real-world APIs with Asynchronous JavaScript
The topic you choose depends on your interests and goals. Pick any of these here — you won’t go wrong.
My personal pick if I were to start learning JavaScript again would be:
- Animations (because I like to make things look nice)
- Async JavaScript (because this lets me build real apps)
Here are some pointers for each of these topics.
Animations
Animations give you the ability to bring movement and delight into a page. You should study this if you want to make things look and feel nice.
Here you need to know:
If you need something more powerful then consider Web Animations API or even libraries like GSAP.
I cover these in Chapter 7 of Learn JavaScript.
Mouse and Scroll movements
Knowing how to use mouse and scroll events can give you the ability to bring your UX up a level by creating delight.
If you choose this, you want to look at two APIs:
- The Pointer API (which is an upgrade over the Mouse API)
- The Intersection Observer API (which is an upgrade over theÂ
scroll event)
Stuff you can build with this includes:
- Drag and drop
- Scrolling and something changes on the page
- Infinite loading pages (when coupled with asynchronous JavaScript knowledge)
I cover the step-by-step instructions on how to build all of these in Chapter 17 and Chapter 18 of Learn JavaScript.
Date and Time
Dates (especially time zones) are pretty hard to understand.
But with this knowledge, you can build just about anything you want that involves dates. Examples include:
- Datepickers
- Countdown timers
I wrote a quick article on everything you need to know about dates in JavaScript. It’s worth a read if you’re diving into Dates.
Of course, I also show you how to build excellent Datepickers and Countdown timers in Learn JavaScript if you’re interested. Just check out Chapter 12 of the course.
Keyboard and accessibility
Since the web is an inclusive place, you’ll often find hot debates about accessibility all over Twitter and other places where developers hang out.
Regardless of where you stand on accessibility, there’s a point where you have to learn it — and you will have to decide when it makes sense.
Things you need to know here include:
- Aria-roles
- Using a screen reader
- Building accessibility into your components
- Testing them with a screen reader
I had lots of frustration learning about accessibility because there weren’t many sites with updated information.
So I had to read the spec, iron out many inconsistencies between browsers, and even debunk spec recommendations in order to teach this portion properly in Learn JavaScript.
It’s hard stuff.
But it’s worth doing when you’re ready for it.
Asynchronous JavaScript
Asynchronous JavaScript is one of my favourite topics on this list because it gives you the ability to use real-world APIs.
When you know this you can build analytics, CRMs, AI tools, and many other apps that rely on using APIs from other providers.
Here are some important JavaScript Concepts you need to know by heart in order to use Asynchronous JavaScript.
- Callbacks (which you should already know)
- Promises
- Async-await
- Using Fetch
You also need to understand API documentation and how to authenticate with them.
This is a huge topic so I covered the content in 2 courses.
Chapter 12 of Learn JavaScript gives you the necessary information to begin building apps with public APIs. So you can make stuff like Todolists work with Optimistic UI.
Understanding Async JS dives into everything else you need to use real-world APIs — this includes building a server to handle most authentication-related issues.
I highly recommend looking at Understanding Async JS when you’re ready. It will be a game-changer for your development career.
When to move on
The Teenage Phase can be short or long depending on how many topics you’d like to understand before you move on. I recommend you dig into the stuff you’re interested in, then move on as you see fit.
That said, I highly recommend at least learning Asynchronous JavaScript since it’s a huge part of building websites and applications nowadays.
Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson