Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am a php lover,working with php for last 2+ years also freelancing in different php producus like wordpress,joomla,drupal.I feel comfortable with php, I tried to learn javascript and its other libraries but feeling uncomfortable.Can not become productive also.

So would any one give suggestion how i can learn the javascript?

share|improve this question

closed as not constructive by Yannis Rizos Mar 18 '12 at 21:06

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I'm flagging this as off topic. It is too localized - the question is extremely personal and specific to the asker, being about how he could 'become comfortable' and be productive with Javascript and jQuery, and is not useful to programmers in general. –  doppelgreener Mar 18 '12 at 9:45

4 Answers 4

By practice

  • Start following some of the basic tutorials on the web (Mozilla dev network is a good place to start)
  • Join your local web development community and join their coding dojos etc
  • Go through books like JQuery in Action
  • Write code
  • write code some more :)
share|improve this answer
    
Frankly speaking I finished w3school a year ago at the first attempt to learn the js,played with jquery basics but suddenly when I try to work with others code I feel that I have not gained enough knowledge to customize. –  mushfiq Dec 9 '10 at 12:59
    
@mushfiq Right so that means you're ready for the: Join your local web development community and join their coding dojos etc, Go through books like JQuery in Action, Write code, write code some more steps :) –  Martijn Verburg Dec 9 '10 at 13:02
    
@thanks alot :) –  mushfiq Dec 9 '10 at 13:06
    
w3schools is really not a good place to start. Mozilla Dev Network is far better. developer.mozilla.org/en/A_re-introduction_to_JavaScript –  Matt Ball Mar 17 '12 at 18:27
    
Agreed answer changed –  Martijn Verburg Mar 18 '12 at 9:37

Plagiarize. If you see a nice feature done in jQuery or plain JavaSript at some other site, try to replicate it to your own. The good side in JS for learning is that the source code is always available. Try to build the feature first without looking at the source, but if and when you get stuck, you have a good place to look for pointers.

This way you can get something done that you really want or like, unlike with tutorials or books which just provide some generalized examples that might or may not relate to your needs. Of course books give you the basic tools to work on, but you'll pick them up as you go if you just start coding what you like. :)

share|improve this answer

Some good JQuery tutorials here. For javascript w3schools is good, they also have a jquery section. But you have to use it yourself to become proficient and comfortable with it, so start building something with them.

share|improve this answer

I wrote games in JavaScript (with no libraries) it has really been a pain to learn all the browser quirks, but I think it's worth it, and with old versions of Internet Explorer dying the problems are growing fewer.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.