Which is Better- JS or jQuery
There are two major advantages that jQuery provides which are as follows:
a. It provides an easy way of doing things and is very good if you want to achieve complex tasks with less LOC(lines of code)
b. The other advantage is that its code is implicitly browser independent and thus there is o tension to look for different properties according to different browsers. For example- in JS we need to write different lines of code for different browsers but there is no such things required in case of jQuery.