Dear Deepthi,
jQuery is a set of functions written in JavaScript, it might be considerate as a library for JavaScript but is not build-in and needs to be included using the script tag. More information:
http://jquery.com/
JavaScript is a language. jQuery is a framework built with JavaScript to help JavaScript programmers who are doing common web tasks.
Please mark this as your answer if it helps you out.
Thanks