Javascript Learning Guide, javascript authoritative guide
It is too easy to get started with javascript, so that almost everyone can get started with it by looking at it at will. People with no foundation can claim that they have mastered javascript For three or five days. But it is very difficult to grasp js. It is difficult to make progress if you first want to ask others when learning a language. Because it is too easy to get the answer, instead of thinking about why. To be honest, JavaScript is not suitable as the first programming language. It is compatible and has high fault tolerance, but it also means that you can hardly find the cause of the error once it fails. On the other hand, js has some excellent features that are hard to find for those who have no programming experience.
If you really want to learn js well, I have a rough self-learning track for your reference.
Step 1: Learn js programming of w3school.
W3school provides the most basic js learning solution, which is very rough, but it is suitable for you to understand the overview of client js. Instances that can be tried immediately, or beginners of js can immediately see the results.
Step 2: You need a book that systematically introduces javascript, such as the rhino book (javascript authoritative guide ).
W3school can tell you only what js is. But what you need to know next is what js is. The rhino book plays this role. The rhino book covers a wide range of contents and can open the entire JavaScript world for you. Of course, because the rhino book is thick and you can't make any achievements right away when you read it, it will be difficult (it is quite interesting for me, because I like js .) However, if you really finish this book, I believe you will also be attracted by the charm of js.
Step 3: understand the essence of javascript-essence of javascript Language
This is a very thin book that can be read in about a day or two. But it is not suitable for beginners. Of course, it is very suitable for those who read the rhino book. The emergence of js is too hasty, so that it has to retain many bad features, but you have the right not to use those. The rhino Book tells you what js is, and this book tells you the essence of js (and the dregs). 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 webpage, it means you are very good, but I do not advocate that. You can use excellent third-party js libraries for faster development, such as jquery, dojo, and d3. What's even more exciting is that the js written by others is 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 give you a headache. How can you quickly understand why others write code like that? First, you have read two classic js books. You have installed the essence of js in your mind. Second, you can also ask questions in various programmer communities.
Step 5: Submit code to the open-source community.
Understanding others' code is learning, while improving others' code is creating.
Come on, and one day you will be able to complete a work that belongs to you and is ready for use.
Conclusion: Simply put, to learn javascript, you must lay a solid foundation, read more code, and write some examples to the open-source community so that you can correct your mistakes and make better progress.