views:

401

answers:

7

Similar to this question, I am wondering if experienced JavaScript developers have any websites they use with examples to get the basics of JavaScript down in 24/28 hours? I have looked at Douglas Crockford's Google Tech Talk and I bought the book "Javascript: The Good Parts", but I haven't had time to read it.

+6  A: 

W3Schools is a good starting point

manu08
I didn't downvote this answer, as technically it may be correct: W3Schools can be a starting point. However, this is definitely not an exhaustive answer, as there is the possibility to learn much more, from much better sources, in a weekend playing with JavaScript.
Daniel Vassallo
The OP asked for the "basics of Javascript". This site covers that. If you don't have any sort of programming background, it can take much more than a couple hours to get through W3Schools tutorial.But thanks for not downvoting me :)
manu08
+2  A: 

If you are starting with the W3Schools tutorial, you should get through that in just a couple of hours, at most. In the remaining time I would suggest watching the video lectures listed in the following blog article:

The author of that blog article wrote very detailed points on each video talk, so you can get a very clear idea of what will be discussed. The talks are given by Douglas Crockford, John Resig and Nicholas Zakas - all significant figures in the JavaScript world. These should take quite a big chunk from your weekend, but they should serve as a very sound introduction for when you go through "The Good Parts" book.

JavaScript is a very expressive language, and I hope learning it will be fun. You can really sense the enthusiasm of the speakers in the above talks when they describe some of the good features of the language, such as closures and first-class functions. Enjoy!

Daniel Vassallo
A: 

If you're learning Javascript it's worth checking out jQuery and Prototype as they will help a lot with writing cross browser Javascript as well as some great resource for performing some of the trickier tasks in JS like animation, etc.

Caps
I would also suggest [MooTools](http://mootools.net/) for a great library to check out.
donut
Those are libraries for once you learn javascript and not before.
Rob
-1 because IMO you should not be using a framework until you understand the language :). Especially one like jQuery or Prototype.
Polaris878
Agreed. Library frameworks are definitely not something you should be using until you understand the basics. That is if you have to use them at all...
Shaunwithanau
A friend of mine really recommends JQuery, but as posters above have already mentioned, libraries are terrible way to learn any language usually, and not the way I have started others I use such as Java/Python.
dueyfinster
+2  A: 

i second the W3Schools reference. I also like the Javascript Phrasebook, it's got real world examples with brief explanations of each one. Doesn't go into the history or theory of the language, which may be too much reading if you want to stuff as much as possible into one weekend.

derek
+19  A: 

Here is my list of really good resources to learn the language:

Tools:

CMS
+1 for the very good list of resources. Going through all that might require a couple of weekends though... but definitely worth it :)
Daniel Vassallo
It's a good list, but it might be overwhelming for someone just looking for the basics.
manu08
+1 helpful list
metal-gear-solid
Comprehensive list with lots of different resources definitely gets my upvote. I picked it as accepted answer because you gave short helpful blurbs on each link, which will help others scanning for good resources.Thanks
dueyfinster
A: 

I was more or less in your situation. What I did was

  • I read "javascript, the good parts". It's a good book, but don't take it literally. For example, its use of objects, completely neglecting the new operator and the native object instantiation mechanism is frankly excessive. Hence, learn the prototype-based mechanism well.

  • take jQuery and learn it by using. Remember that jQuery is a great library to manipulate the web page DOM. add nodes, remove nodes, and much more. jQuery abstracts many browser dependent operations, so you don't go mad with browser incompatibilities.

  • tinker and when you find yourself in a troublesome spot, use FireBug to find the trouble. Make smaller examples, be very wary of variables introduced without the var keyword, and always keep into account that this refers to the object owning a given routine, and this could be an unexpected one.

Javascript (and JS on the DOM) is a nice language, but its logic can be baffling sometimes. Don't give up. Once you get to understand how it works, it's rather intuitive.

Stefano Borini
+1  A: 
Sean Vieira
... and will you look at that ... CMS already has :-D
Sean Vieira