SoFunction
Updated on 2025-03-03

Javascript Learning Guide

It is too easy to get started with JavaScript, which leads to almost everyone being able to get started by just taking a look. People with zero foundation can claim to have mastered js for three or five days after learning. But it is very difficult to truly master js. If the first thing you think of when you are first learning a language is to ask others, it is difficult to make progress. Because it's too easy to get an answer, and you won't think about why. And to be honest, js is not suitable as the first programming language. It is compatible and has high fault tolerance, but this also means that once something goes wrong, it will be difficult for you to find the cause of the error. On the other hand, js has some excellent features, and it is difficult for people who have no programming experience to discover.

If you really want to learn JS well, I have a rough self-study track for your reference.

The first step is to learn js programming in w3school.

w3school provides the most basic JS learning solution, which is very sketchy, but is very suitable for you to understand the general picture of client JS. An example that can be tried immediately, or you can let beginners of js see the effect immediately.

In the second step, you need a book that systematically introduces JS, such as Rhino Book (authoritative guide for JavaScript).

All w3school can tell you is what js is probably. But what you need to know next is what js really is. Rhino Books acted as this role. Rhino Book covers a very wide range and has a very comprehensive content, which can open up the entire world of js for you. Of course, because Rhino Book is thicker and you can't do anything to come out immediately when you read it, so this period will be more difficult (it's quite interesting to me, because I like js.) But if you can really finish this book, I believe you will also be attracted by the charm of js.

Step 3: Understand the essence of js - "Javascript Language Essence"

This is a very thin book that can be read in about a day or two. But it is not suitable for beginners to read. Of course, it is very suitable for those who have read Rhino Books. The birth of js is so hasty that it has to retain a lot of bad features, but you have the right not to use those. Rhino Book tells you what js is, and this book tells you the essence (and dross) of js. I believe you will benefit a lot after reading it.

Step 4: Read the code

If you do not use any third-party js library to complete your web page, it means you are very good, but I don't recommend you do that. You can use excellent third-party js libraries for faster development, such as jquery, dojo, d3, etc. And what is even more exciting is that these js written by others are completely visible to you. Reading code is the fastest way to improve a person's programming ability, but reading code out of thin air will definitely cause you a headache. How can you quickly understand why others write code like that? First, you have read two classic JS books, and your mind has the essence of JS. Second, you can also ask questions in various programmer communities.

Step 5: Submit code to the open source community.

Understanding other people's code is learning, while improving other people's code is creation.
Come on, one day you can complete a work that is your own and pioneering.

Summary: To simply put, to learn JavaScript, you must first lay a solid foundation, then read more code, and finally write some examples to submit them to the open source community, so that everyone can correct your mistakes, so that you can make better progress.