So, what exactly is Vanilla JS, and should we learn it first? Where should you start?
Not only this, but Vanilla JS is present on more websites than the number of websites of several JS libraries combined!
With that being said, should you actually learn Vanilla JS first? Especially if you consider that there are many powerful libraries available, which can be easier to cope with? Let’s take a closer look.
It is a much simpler task to start coding.
Libraries are constantly changing, evolving, some of them are getting obsolete with time. However, if you know the language itself, you are not tied down to libraries learned.
In addition, you avoid limitations of chosen framework. With Vanilla JS you can create customized code, without the restraints of specific libraries.
You will in fact write better code. Learning Vanilla JS will grant you deeper knowledge of the topic.
With knowing the essence of the language, you will be able to write simpler, and more effective code. This will reflect on your knowledge of JS libraries also, as you will start reducing the complexity of your code.
My own experience…
After a while, I decided to start again, but this time, with Vanilla JS. I still learn it, and have a long road to go. But getting a grasp over the language itself, the mechanism behind the scenes, helped me to stay on track and try some more complex projects.
In my own opinion, I believe it was the right thing to do. Especially if we take into consideration that many things that were not possible before, are in fact feasible today in Vanilla JS. Not only that, but now I feel more comfortable with starting to learn additional libraries and frameworks.
Knowing Vanilla JS will make you more flexible in the world of ever changing and emerging libraries and frameworks. And limiting your knowledge toward one framework, without understanding the language itself, will make learning a new library a more difficult task.