Menu Close Menu

Is JavaScript and jQuery are actually the same thing

Jquery logo
The differences between the two programs are discussed on the internet in more than thousands articles but technology is full of confusing terms. A lot of fresh developer (also me) ask a question it’s possible the use JQuery only?, So the answer is simple “No”, first off - it's impossible to use jQuery only, all jQuery does is add a $ object to your global scope, with a bunch of methods in it. Even more manipulative libraries like prototype aren't an alternative to javascript, they're a tool belt to solve common problems.


What Is JavaScript And Why its value For Web?


The answer is simple for What is Javascript “ it’s is a programming language whereas jQuery is a framework to help make writing in javascript easier.
An HTML page is a static one without use of JavaScript. It’s could make a web page dynamic and also we can create special effects on web pages like rollover, roll out and many types of graphics that would leave an amazing impression. For example, for a flash content on a web page to be executed in a web browser the JavaScript must be enabled. It’s also necessary for validation contact forms and login forms etc.

The uses of JavaScript don’t stop there, It has also been used for server-side programming, network programming with frameworks such as Node.js, game development and the creation of desktop and mobile applications.  JavaScript was originally developed by Brendan Eich, while working for Netscape Communications Corporation.


What Is JQuery And Why it’s Important

jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML. It’s free, open source software, licensed under the MIT License. Before JQuery, developers would create their own small frameworks (group of code) this would allow all the developers to work around all the bugs and give them more time to work on features, so the JavaScript frameworks were born.

On the other hand best way to know what is JQuery? it’s a fast and well performance (Group of JavaScript code) Library that simplifies WebPages and HTML documents traversing, Events, Animating and develop Ajax applications for a well performed web development. Used by over 80% of the 10,000 most visited websites. [Wiki]

The main advantages of jQuery :

1. Browser compatibility - doing something like .attr() is much easier than the native alternatives, and won't break across browsers.

2. Simplification of usually complicated operations - if you'd like to see a well written cross browser compatible version of an XHR method, take a look at the source for $.ajax - for this method alone it's almost worth the overhead of jQuery.

3. DOM selection - simple things like binding events & selecting DOM elements can be complicated and differ per-browser. Without a lot of knowledge, they can also be easily written poorly and slow down your page.

4. Access to future features - things like .index Of and .bind are native JavaScript, but not yet supported by many browsers. However, using the jQuery versions of these methods will allow you to support them cross browser.

 

I hope the above introduction enough to understand difference between two programming language, If I miss anything please let me know in the comment box below, I will try to improve my post according to your tips. Please feel free to post any query via comment box below, we will always well come you as a loyal reader. Happy Blogging..!!

"Be the first to express your thoughts"

Post a Comment

Important - Make sure to click the "Subscribe By Email" link below the comment for to be notified of follow up comments and replies.If you use Name/URL don't use keywords as your name. We love to hear from you! Leave us a comment.
To ensure proper display, HTML/XML/JavaScript need to be Encode first using this Encoder Tool Then paste the Encoded code here.