Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it necessary to learn JavaScript before learning jQuery? [duplicate]

Tags:

Possible Duplicate:
Is it a good idea to learn JavaScript before learning jQuery?

I am about to start learning JavaScript. However one friend suggested me to go in for jQuery instead since he says future is jQuery. I heard that jQuery is created from JavaScript.

In short, give me one simple reason why developers like me should invest in JavaScript. What is its future?

like image 830
ScG Avatar asked Jul 06 '10 04:07

ScG


People also ask

Should I learn JavaScript or jQuery first?

It lets the user do more things via JavaScript. If you are just starting to learn code, it's recommended by most experts to learn jQuery prior to learning JavaScript.

What should I learn before learning jQuery?

Some web developers choose to learn jQuery without ever learning the DOM API, but we strongly encourage you to learn the DOM API first - and we will refer to it throughout this course.

Can I learn jQuery same day?

JQuery is easy-to-learn and can be learned within a few hours. However, it's always recommended that you have a basic knowledge of HTML, CSS, and JavaScript before getting your hands dirty with JQuery. JQuery is simply a JS library.

Is jQuery easier than JavaScript?

Therefore developers find it easier to work with jQuery than with JavaScript. Though JavaScript is the basic language from which jQuery has evolved, jQuery makes event handling, DOM manipulation, Ajax calls much easier than JavaScript.


2 Answers

  1. Part of being a good programmer is having an interest in understanding how things work. You can't understand how JQuery works without knowing JavaScript.

  2. A good programmer has a diversity of skills. Knowing both the JQuery way to do things and the JavaScript-only way makes you more versatile.

  3. Most employers who are looking for someone who knows JQuery are probably also looking for someone who knows ordinary JavaScript.

  4. You can never achieve true expertise in JQuery without understanding JavaScript.

  5. Sometimes even a fairly lightweight framework is more than you need.

  6. If you don't ever learn to do things the hard way, you won't appreciate what's so great about doing it the easy way.

  7. Moreover, if you start by learning to do things the easier way, you'll have that much harder a time motivating yourself to learn to do it the hard way.

  8. Learning the language first without the fancy frameworks builds character.

  9. Who knows, maybe you'll want to make your own framework someday. Or even work on a new version of JQuery. To do that, you'll need to know the language.

like image 198
Tim Goodman Avatar answered Oct 26 '22 23:10

Tim Goodman


jQuery is JavaScript and yes, it makes things a lot easier for you and you can use it without much JavaScript knowledge, and yes, it will probably become even more popular in the future.

BUT: Wherever is jQuery, there will be JavaScript. jQuery is "just" a tool. You still need "plain" JavaScript to solve some problems, e.g. string manipulation.

Imho: You cannot master jQuery if you don't master JavaScript.

And there will be situations where jQuery might be not the best solution, e.g. when you really need high performance.


For me, this is similar to other questions I read here on SO about web frameworks and programming languages, like: Do I have to learn/know PHP if I want to use [Zend | symfony | CodeIgniter].

Seriously: If you don't understand the basics, you cannot use a tool efficiently.

like image 25
Felix Kling Avatar answered Oct 27 '22 00:10

Felix Kling