Jquery Interview Questions

Question 1:

What is jQuery?

jQuery is a fast, small and feature-rich javaScript client side library.

jQuery helpful in DOM manipulation.

jQuery a rich javaScript library helpful in JSON parsing, making AJAX calls.

jQuery provides lots of plugins (e.g. jQuery validation and many more) which are very helpful in client-side web development.

In addition, jQuery library provides following components:

  • jQueryUI
  • jQuery Mobile
  • Sizzle
  • Qunit

jQuery Official website http://jquery.com/.

Question 2:

Where Jquery code is execute - On client browser or server?

Jquery code is execute on client brower.

Question 3:

Can we say jQuery replacement of Java Script?

No. jQuery is not a replacement of JavaScript. jQuery is a library which is written on top of JavaScript. jQuery is a lightweight JavaScript library which reduces a lot of syntax by providing in-built methods that can be used by developers which save lot of time and effort.

Question 4:

Is jQuery a W3C standard?

No, jQuery is not a W3C standard.

Question 5:

How will you add JQuery library to pages?

You can download the jQuery library from JQuery Library Download and include the script file in your webpage using script tag. 

<script src="location_of_your_jqury_library_file"></script>

Question 6:

What is the difference between jquery.js and jquery.min.js?

Before we understand difference between jquery.js and jquery.min.js let us first understand minification. Minification is the process of removing all unnecessary characters from source code without changing its functionality. The .min version i.e jquery.min.js is the minified version of jquery.js. This is done to reduce the load time of file as size of minified file is less as compared to normal file.

Question 7:

Which is the starting point of code execution in jQuery?

The starting point of code execution in jQuery is $(document).ready() function or $(function() { }) which is executed when DOM is loaded.

Question 8:

What does dollar sign ($) means in JQuery?

The default namespace of jQuery library & its plugins is jQuery. By default, jQuery uses $ as shortcut for jQuery namespace.

Question 9:

Differentiate document ready function vs onload function in jQuery?

$(document).ready is jQuery event that is fired when DOM is loaded i.e when the document structure is ready.


$(window).load event is fired after whole content is loaded like images,css and other static contents etc

Question 10:

Can we have multiple document.ready() function on the same page?

Yes, we can have multiple document.ready() function on the same page but it is discouraged to do so as it reduces the redability of code.

Share interview questions


comments powered by Disqus


Social Media