JavaScript is a scripting language which is used within a browser for interface interactions. JQuery is a library of Java scripts that simplifies event handling, animations etc. ... The only difference is that jQuery has been optimized to perform many common scripting functions in fewer lines of codes.