Javascript learning guide

  • 2020-03-30 04:28:53
  • OfStack

Javascript is so easy to get started that almost everyone can just look at it and get started. People with zero knowledge can claim to have mastered js after learning it for three or five days. But really master js is a very difficult thing. It is difficult to make progress if the first thing that comes to mind when you are learning a language is to ask others. Because it's so easy to get an answer, you don't think about why. And to be honest, js is not the first programming language, it is compatible and fault-tolerant, but it also means that once something goes wrong, you can hardly find the reason for the error. On the other hand, js has some excellent features that are hard to find even for people without programming experience.

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, very rough, but very good for giving you a general view of client-side js. The instance that can try immediately, also can let js novice see the effect immediately.

Second, you need a system introduction to js book, such as the rhino book (the definitive guide to javascript).

The only thing w3school can tell you is what js is. But the next thing you need to understand is what js really is. The rhinoceros book plays that role. The rhino book covers a wide range of areas, and the content is very comprehensive, you can open up the whole js world. Of course, because rhino books are thick and you can't do anything right away when you read them, it can be a tough time (it was fun for me because I like js). But if you can really finish reading this book, I believe you will be attracted by the charm of js.

Step 3: understand the essence of js -- essence of javascript language

It is a very thin book, and it should be finished in a day or two. But it's not for beginners at all, and of course, it's great for people who have finished rhino books. Js was born so quickly that it had to keep a lot of bad features, but you had the right not to use them. Rhino book tells you what js is, and this book tells you the essence of js (and dross), after reading I believe you will benefit.

Step 4: read the code

If you don't use any third-party js libraries to complete your web pages, you're doing great, but I don't recommend that. You can use good third-party js libraries like jquery,dojo,d3, etc. And even more exciting, these js written by others are completely visible to you. Reading code is the fastest way to improve a person's programming skills, but reading code out of thin air can be a real headache. How can you quickly understand why someone is writing code that way? On one hand, you have read two classic js books, you have the essence of js in your mind, and on the other hand, you can also go to various programmer communities to ask questions.

Fifth, submit the code to the open source community.

To read someone else's code is to learn, to improve someone else's code is to create.
Come on, one day you will be able to finish a groundbreaking piece of work of your own.

Summary: simply put, learning javascript is about laying the foundation, then reading more code, and finally writing some examples to submit to the open source community so that people can correct your mistakes, so as to make better progress.


Related articles: