Interview Questions

These are very common jQuery interview questions which is generally asked in interview. I try to answer very sort and correct that's why you can remember it easily.

What is jQuery?

jQuery is a fast, small, and feature-rich JavaScript library. jQuery simplifies HTML document traversing, event handling, animating, and Ajax request for website development.

Why we use jquery

jQuery is easy to learn as well as very simple to use. It is browser independent. It makes your application dynamic at client side. jQuery is a very fast and small. It save dozens of lines of code.

What are jQuery Selectors?

jQuery selectors used to catch the particular html element which we will manipulate.

What is callback?

A callback is a plain JavaScript function passed to some method as an argument or option. Generally we called this function when a certain task has been completed.

What is difference between .on() and .bind()?

The .bind() method attach the same event handler to every matched element by the selector. It doesn't work for dynamically added elements. Where as .on() method work for dynamically added elements. It is good when dealing with a large selection.

What are the different type of selectors in jquery?

There are many type selectors in jQuery but the most popular are:
1. ID selector
2. Class selector
3. Element selector
4. Attribute selector
5. :checked selector

What is difference between $(this) and this keyword in jQuery?

this refers to a to a DOM element and $(this) refers to a jQuery object.

What is difference between detach() and remove() method in jQuery?

remove()
This function remove all elements in the wrapped set from the page DOM.
detach()
This function work same like remove() method but it not remove the event of that element.

How do you add and remove class to an element using jQuery?

To add a class we use addClass('classname') method and to remove a class we use removeClass('classname') method.

What is difference between == and ===

When we use triple equal it also check the their type(data type).
1 == "1" // true.
1 === "1" // false

What is difference between parents and closest in jquery?

closest() return the first element that matches the selector where as parents return all element that matches the selector
. Both travel up the DOM tree.

What is difference between parent and parents in jquery

parent() return just the parent element where as parents return all element that matches the selector.

What is event bubbling?

When any event fire on a particular element it start to fire same event on its parent element is called event bubbling. stopPropagation() is used to prevent the event bubbling.

What are some of the common methods in jQuery

There are various method in jQuery. Some popular are:
1. val()
2. height()
3. width()
4. remove()
5. html()
6. css()
7. addClass
8. attr()
9. find()
10. bind()

15 comments :

  1. Replies
    1. The effectiveness of IEEE Project Domains depends very much on the situation in which they are applied. In order to further improve IEEE Final Year Project Domains practices we need to explicitly describe and utilise our knowledge about software domains of software engineering Final Year Project Domains for CSE technologies. This paper suggests a modelling formalism for supporting systematic reuse of software engineering technologies during planning of software projects and improvement programmes in Final Year Projects for CSE.

      Software management seeks for decision support to identify technologies like JavaScript that meet best the goals and characteristics of a software project or improvement programme. JavaScript Training in Chennai Accessible experiences and repositories that effectively guide that technology selection are still lacking.

      Aim of technology domain analysis is to describe the class of context situations (e.g., kinds of JavaScript software projects) in which a software engineering technology JavaScript Training in Chennai can be applied successfully

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. Sir ,please share more interview questions and answer .....


    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. very nice article you shared.
    if you want to know the technologies updates,visit below site.
    dot net and latest technologies Tutorials

    ReplyDelete
  5. Wow, What an Excellent post. I really found this to much informative. It is what I was searching for. I would like to suggest you that please keep sharing such type of info.jquery selector cheat sheet

    ReplyDelete
  6. I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks microsoft edge addons

    ReplyDelete
  7. I generally check this kind of article and I found your article which is related to my interest.hr interview questions Genuinely it is good and instructive information. Thankful to you for sharing an article like this.

    ReplyDelete
  8. Your blog had very good knowledge and that gives huge instructions and that was really commendable ideas you have good knowledge on this topic please share more information with us. Multiple mini mmi

    ReplyDelete
  9. It’s actually a great and helpful piece of info. I’m happy that you just shared this helpful info with us. Please keep us informed like this. Thanks for sharing! Best best web design company service provider.

    ReplyDelete
  10. Great article by the great author, it is very massive and informative but still preaches the way to sounds like that it has some beautiful thoughts described so I really appreciate this article. Best hire vue js developer service provider.

    ReplyDelete
  11. Wow! Thank you! I constantly wanted to write on my site something like that. Can I take a portion of your post to my website? Best junior software developer jobs service provider.

    ReplyDelete
  12. Ultimately, I obtained what I was trying to find. Do not have sufficient words to thank you that you select this certain topic to blog about. Feeling really completely satisfied after reading
    Best Website Development Company USA

    ReplyDelete
  13. After a long time, I read a very beautiful and very important article that I enjoyed reading. I have found that this article has many important points, I sincerely thank the admin of this website for sharing it. Best business it support service provider.

    ReplyDelete
  14. Great article by the great author, it is very massive and informative but still preaches the way to sounds like that it has some beautiful thoughts described so I really appreciate this article. Best cheat sheet service provider.

    ReplyDelete