Hey there! You guys are precious to me because you are the first of many readers of my very first blog.
Okay, let's get into action now. This is not gonna be a regular JavaScript post that's gonna always praise JavaScript(P.S: I'm also a JavaScript Fan-boy) instead, this will say everything about JavaScript both pros and cons.
JavaScript began its journey in 1995 at the hands of Brendan Eich. Also, JavaScript was called with multiple names such as Mocha, LiveScript before getting its name as JavaScript. Fun fact: Though it got the name as JavaScript it has nothing to do with Java โ.
After ECMA got their hands-on JavaScript, the first standard version of JavaScript was released in June 1997. And then the JavaScript evolved slowly with every standard release.
Despite everything, the real reason for its popularity according to my thought is the introduction of different JavaScript Frameworks. Even there will be a day without sun rises in the morning but there won't be a day without having a new JavaScript framework release ๐.
The First well-known JavaScript framework is DHTML(Dynamic HTML). After that lot of frameworks were released in the early days. Among all of them, Jquery was standing on the top of everything. Then later to introduce JavaScript into server-side Node.JS was introduced. Today Node.js is one of the most used server-side technologies in the world.
Today there are numerous JavaScript frameworks such as Angular, React(I know it's not technically a framework but still ๐คญ), Vue, Ember, and more and more and more........
Also now you can create Mobile apps(React Native) and Desktop Apps(Electron.JS) and even you can do Machine Learning (Tensorflow.JS) with JS. Despite having all these pros, it also has some cons(Which we are not going to mind anyway ๐).
Let's come to the bitter part.......
One of the main disadvantages is that JS code will be always available to view. If you are using Vanilla JS then obviously the DOM is gonna be slow. If some error occurs in JavaScript code then it may even stop to render the whole website. The continues conversion may increase the run time. Another thing is JavaScript is understood differently by different browsers, this makes it somewhat complex to read and write cross-browser code.
Anyway, at the end of the day, we are all gonna love JavaScript ๐.