1. Explain the advantage of using plugin?

jQuery plugins are quite useful as its piece of code which is already written by someone and re-usable, which saves your development time.

2. Explain jQuery UI?

jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library that can be used to build interactive web applications.

3. Can you please explain the difference between jQuery and jQuery UI?

jQuery is the core library. jQueryUI is built on top of it. If you use jQueryUI, you must also include jQuery.

4. Explain jQuery plugin?

A plug-in is piece of code written in a standard JavaScript file. These files provide useful jQuery methods which can be used along with jQuery library methods.

5. Can you please explain the difference between calling stop(true,true) and finish method?

The .finish() method is similar to .stop(true, true) in that it clears the queue and the current animation jumps to its end value. It differs, however, in that .finish() also causes the CSS property of all queued animations to jump to their end values, as well.

6. Explain finish method in jQuery?

The .finish() method stops all queued animations and places the element(s) in their final state. This method was introduced in jQuery 1.9.

7. Tell me how to use migrate jQuery plugin if possible?

with release of 1.9 version of jQuery, many deprecated methods were discarded and they are no longer available. But there are many sites in production which are still using these deprecated features and it's not possible to replace them overnight. So jQuery team provided with jQuery Migrate plugin that makes code written prior to 1.9 work with it.
So to use old/deprecated features, all you need to do is to provide reference of jQuery Migrate Plugin.

8. Explain source maps in jQuery?

In case of jQuery, Source Map is nothing but mapping of minified version of jQuery against the un-minified version. Source map allows to debug minified version of jQuery library. Source map feature was release with jQuery 1.9.

9. Tell me does jQuery 2.0 supports IE?

No. jQuery 2.0 has no support for IE 6, IE 7 and IE 8.

10. Explain deferred and promise object in jQuery?

Deferred and promise are part of jQuery since version 1.5 and they help in handling asynchronous functions like Ajax.

Download Interview PDF