Skip to content Skip to sidebar Skip to footer

Javascript Or Jquery?

I'd like to ask a simple question, Should I use javascript or jquery? For all I know, jquery is difficult for me to learn (the ajax part at least) and I already know javascript and

Solution 1:

jQuery is Javascript.

It's just a set of Javascript functions that many people find very convenient. jQuery.ajax in particular is much easier to use than the native XMLHTTPRequest.

There is nothing wrong with calling functions that aren't defined by jQuery.

Solution 2:

jQuery is JavaScript. It's only a framework. So you are totally safe to use both.

Answering your updated question on how jQuery frameworks offer you more than dealing with plain JavaScript:

  • Write less code and do more
  • Cross-browser compatibility out-of-the box
  • A lot of really good plugins available

You should not worry about performance. jQuery gives you so much more.

Solution 3:

jQuery is a JavaScript library, so in order to use jQuery you have to be using JavaScript.

That being said, you're free to use both. Use plain JavaScript where you want, use the jQuery library for code which is more clearly expressed in jQuery.

Solution 4:

jQuery IS Javascript actually.

But for question, just use both, because jQuery is faster for some stuff, but it is limited. It is only Javascript library.

Solution 5:

jQuery is javascript.

That said, if you already are using jQuery in your website, I'd recommend making use of its ajax support. It really is much nicer than attempting to write your own cross-browser implementation.

Post a Comment for "Javascript Or Jquery?"