Member-only story
Why a post on jQuery? Because I recalled that in my University it is still taught to students because it makes developer’s life much easier. It was certainly true up until six years ago, but not anymore.
JavaScript, ECMAScript, and so on
A little bit of theory: JavaScript is only one of the possible implementations of a standard called ECMAScript.
On the Wikipedia page, I linked you will find all the supplementary pieces of information about that if you are not familiar with those terms.
JavaScript and ECMAScript go hand in hand. A few years ago there were a lot of easy things that required a lot of code to be implemented in JavaScript; while it was relatively easy using jQuery.
“Write less, Do more.”
That was the motto, and it was spot on.
What happened is that since ECMAScript Version 6 a lot of features were added that made jQuery completely obsolete. Let’s see some examples.
jQuery vs VanillaJS: Select an element
With the term VanillaJS, I intend the plain version of JavaScript without using other libraries or frameworks.
//jQuery
$('#elementID');// VanillaJS
// Alternative #1…