in ,

WHAT IS THE DIFFERENCE BETWEEN JQUERY AND JAVASCRIPT?


If you are new to the use of jQuery it is important to know that jQuery is not a programming language but a set of JavaScript functions and methods.

Actually JavaScript is the programming language and jQuery refers to the libraries that are used, if desired, to facilitate the tasks.

Now let’s see the difference between the two with a simple example:

JavaScript
function change Background (color) {
document.body.style.background = color;
}
Onload = “change Background (” # ccc “);”
jQuery
$ (“body”). Css (“background”, “# ccc”):

 

You can tell the difference, it’s obvious. jQuery manages to change the background color of the web page with only one line of code while JavaScript does it with four lines.

In addition, jQuery has no difficulty in executing its code in any browser, be it Firefox, Chrome, Internet Explorer, Opera, etc. 8

characteristics

 Selection of DOM elements.

 Interactivity and modifications of the DOM tree, including support for CSS 1-3 and a basic XPath plugin.

 Events.

 Manipulation of the CSS style sheet.

 Effects and animations.

 Custom animations.

 AJAX.  Supports extensions.

 Various utilities such as obtaining information from the browser, operating with objects and vectors, functions for common routines, etc.

 Compatible with browsers Mozilla Firefox 2.0+, Internet Explorer 6+, Safari 3+, Opera 10.6+ and Google Chrome 8+. 9

Advantage

The main advantage of jQuery is that it is much easier than its competitors.

You can add plugins easily, translating this into a substantial saving of time and effort.

In fact, one of the main reasons why Resig and his team created jQuery was to buy time (in the web development world, time matters a lot).

The open source license of jQuery allows the library to always have constant and fast support, constantly publishing updates.

The jQuery community is active and extremely hardworking. Another advantage of jQuery over its competitors such as Flash and pure CSS is its excellent integration with AJAX.

In summary:

 jQuery is flexible and fast for web development

 Comes with an MIT license and is Open Source

 Has an excellent support community

 Has Plugins

 Bugs are resolved quickly

 Excellent integration with AJAX 10

Disadvantages

One of the main disadvantages of jQuery is the large number of published versions in the short time.

It does not matter if you are running the latest version of jQuery, you will have to host the library yourself (and update it constantly), or download the library from Google (attractive, but can bring incompatibility problems with the code).

Besides the problem of the versions, other disadvantages that we can mention:  jQuery is easy to install and learn, initially.

But it’s not that easy if we compare it with CSS

 If jQuery is improperly implemented as a Framework, the development environment can get out of control.

Leave a Reply

Your email address will not be published.

Advantages and disadvantages of the main types of child delivery

Advantages and Disadvantages jQuery