Lines of code
Source :- compote.slate.com
Source :- medium.com
It is not right to compare both as both are useful as per the requirements.
Also Read :- 5 Key Differences Between Java and Python
All the modern browsers support JS so there is no need to include anything in the browsers. But, you have to include the jQuery library URL in the header of the page.