Introduction:
To learn JavaScript, the first thing to say is that JavaScript is a magic language. It is moving towards the direction of master key. As long as it is good at JavaScript, there is an invincible catch up in WEB development, and it seems to be "very simple".
Let's take a look at what JavaScript has done over the years?
1. A lot of libraries have been produced: jQuery, MooTools, Prototype, Dojo, YUI, ExtJS, ZeptoJS
2. Produce a lot of frameworks: AngularJS, VueJS, ReactJS, EmberJS, NuxtJS, ThreeJS
3. Produce a lot of derivative languages: TypeScript, JSX, CoffeeScript
4. The birth and development of ES6: For ES3/ES5, ES6 is a big piece of grammar sugar
On the other hand, let's see why there is such a wide range of development?
1. Causes of the library
The JS library is actually a bunch of function interfaces. With these libraries, many JavaScript programs do not need to be written by developers. Instead, they can use library function interfaces to complete functions.
The emergence of libraries proves that the requirements of front-end programs are getting higher and higher, and the complexity is also increasing, so it will be more and more difficult to implement functions with JS. A stack of libraries have written methods for you, and you can use them directly, greatly reducing the program development cycle.
2. Causes of the Framework
The JS framework is the development mode of JS. A better and more reasonable project architecture makes the project easy to maintain and expand. Most frameworks also provide a complete set of data and view binding mechanisms to optimize the front-end performance.
The emergence of frameworks has proved the advantages and disadvantages of JavaScript itself. The advantages are flexible, and the disadvantages are flexible. It's great to be able to flexibly use a language. But sometimes because of the flexibility, it is difficult for developers to master a reasonable development mode. How to write it is correct