---
title: "Do you prefer jQuery or JavaScript? Explain Why?"  
description: "Do you prefer jQuery or JavaScript? Explain Why?"  
author: "Anonymous User"  
published: 2011-10-17  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1301/do-you-prefer-jquery-or-javascript-explain-why  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# Do you prefer jQuery or JavaScript? Explain Why?

jQuery solves major JavaScript problems. jQuery is preferred over JavaScript due to following reasons.

- jQuery is light weight library for developing client side applications including ajax.
- jQuery assists to keep code simple and concise and reusable. Huge line of code developed using JavaScript can be eliminated with just few lines of jQuery.
- jQuery library simplifies the process of traversal of HTML DOM tree.
- jQuery can also handle events, perform animation, and add Ajax support in web applications.

## Answers

### Answer by Anonymous User

jQuery solves major JavaScript problems. jQuery is preferred over JavaScript due to following reasons.

- jQuery is light weight library for developing client side applications including ajax.
- jQuery assists to keep code simple and concise and reusable. Huge line of code developed using JavaScript can be eliminated with just few lines of jQuery.
- jQuery library simplifies the process of traversal of HTML DOM tree.
- jQuery can also handle events, perform animation, and add Ajax support in web applications.


---

Original Source: https://www.mindstick.com/interview/1301/do-you-prefer-jquery-or-javascript-explain-why

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
