6 thought tips for learning JavaScript faster

Source: Internet
Author: User

When we learn JavaScript, or any other coding skill, we tend to be deterred by these stumbling block:

    • Some concepts can be confusing, especially if you're transferring from another language.
    • Can't find the time (sometimes the motivation) to learn.
    • It is easy to forget what has been understood.
    • Tools are constantly changing, so don't know where to start.

Fortunately, these stumbling block can be identified and eliminated. In this article, I'll cover six thinking techniques to help you learn JavaScript more quickly and become a happier, more productive programmer.

1. Don't let future decisions stop you from moving in the right direction

Many people learn JavaScript, and the first question is often "which frame should I use?" ”。 But if you haven't mastered the most basic JavaScript yet, that's obviously a mistake. You spend all your time studying different frameworks, so you start to stagnate.

One way to help get rid of this trap is to draw a roadmap that you need to learn. For example, to be a front-end developer, your roadmap might be:

Further decomposition, you can do a functional Web page with only HTML and CSS. And then list each step as one step at a time, so it's clear what you should focus on now. You don't waste your time worrying about things that you should worry about later.

If you think this roadmap is useful, then look at my previous "Learning road map for becoming a front-end developer", which is described in detail. ( note : For the course of learning JavaScript, you can also refer to the 8 mind map of learning JavaScript this article)

2. Don't let confidence trick you into forgetting things.

A quick look at a concept may be one of the most influential things on the road to learning JavaScript that affects your progress. Please allow me to explain.

When you read something that you think is true, then it is likely that you will jump directly to the next content. And then you think the next thing is pretty straightforward, so keep looking down. But soon, you will find that you have forgotten what you think you already know, so you can only go back and brush your head. You glance over it, feel it again, and move on. But then you find yourself forgetting something else. You have been in this loop until you finally lost yourself. You are discouraged from the ground, think about that first rest, but when you come back after the rest, you find that you have forgotten all the content.

Solving this problem is also very simple and requires only two steps:

    • Limit the amount of one study.
    • Practice--actually writing code.

When you learn a new concept, be sure to try it, tinker with it, get familiar with it, and even combine it with other concepts. and the actual output to the sample code is important because it helps you digest and absorb it. In addition, limiting the amount of one study can help to remember the information, the reason is very simple, the less things the better remember.

While this learning process can make you feel like you need more time, it's actually the opposite, because you don't have to go that far. I also learned this technique through a lot of horrible lessons.

3. Use the right mindset to do the exercises

Many people think that repeated practice is especially boring, so they usually choose to skip or try to take a shortcut. If you are fast into JavaScript practice, you will eventually need more time to study. Try to make the practice interesting, so is it not so resistant?

Try to change the mindset:

What if you had to learn a new JavaScript concept and not try it? How do you feel about that? Personally, I would be particularly annoyed. It's like a child getting a new toy, but not playing the same.

When you learn something new in JavaScript, try to use it as a new toy, new car, new shoe, or anything else you're interested in trying. Then do not use the practice as a work, but exercise as a play. Try something cool with your new skills. Let yourself be amazed by the wonder. and show it to your friends.

With a game of mind, you will learn faster, remember longer, have more fun.

4. Time Magic to write code

The most common problem with learning JavaScript is that you can't find time to write code. However, at the same time, there are plenty of times to browse various websites, such as Facebook,youtube, Wikipedia and Reddit.

I had a couple of times when I just wanted to open up Facebook for a little while, and then I realized I'd been watching for hours. How did this happen? Maybe it's because I'm not going to watch it for a long time. Everything starts hard, and once you open your head, it's much easier to get back in. But if someone asks me if I want to spend time on Facebook, I'll say no, because I'm not going to have enough time. However, allowing only a few minutes to see time is often easier to accept and then get bogged down in it.

The good news is that you can also use the same mentality to learn to write code. Don't think about coding for hours at first, because you'll never find so much time. Just tell yourself you're going to write a 3-minute code. So you never have to worry about the time.

5. Think more slowly and learn faster

That sounds counterintuitive, and I'll explain it in a small story.

One of my friends used to be confused about a feature of JavaScript. So I asked him to say in detail what he knew and then explain to him the part he was puzzled about. However, when he checked the code snippet, I noticed that there was a piece of code that he said very hastily.

"Wait a minute!" I said, "Slow down and say it in detail at every step." ”

My friend continued to give me a comprehensive summary of what happened to the code.

I had to call him again. "You are still too hasty." Try again, but this time, I want you to literally check each line of code to tell what's going on in each line of code. ”

This time, my friend has finally been able to explain exactly what is going on in the code. The point is that he can finally take a step-by-step look at the code snippet instead of swallowed trying to understand all the code at once.

In a situation like this, thinking more slowly can actually make you learn faster.

6. First write complex code in concise language

If you run into a complex or unfamiliar code, write it in a plain and easy-to-read language. This way, you can clearly know what you want the code to do before you write the code. There are two benefits to doing so:

    • The code is easier to write because you don't always have to stop and think about what you want it to show.
    • You can catch a bug before it happens because you have a clear idea of what the code should do.
Conclusion

We've discussed a bunch of ways to learn JavaScript faster, and you can apply these techniques to other skills as well. Here's a look at the following:

    • Do not worry about what will be done in the future, go deep into the study.
    • Practice the new skill as a toy.
    • Find time to write code in a small commitment way, just like you start by comforting yourself with just a little time visiting the site.
    • Slow down, the smaller the pace, the faster you learn.

By the way, how did you learn? Do you have any good skills? Or, do you think I'm talking nonsense, and the only way to learn is to go into it 12 hours a day? Whatever it is, please feel free to comment.

6 thought tips for learning JavaScript faster

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.