TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The best JavaScript guide ever

278 pointsby alrex021over 14 years ago

11 comments

Samuel_Michonover 14 years ago
I personally prefer programming guides with some humor, lots of examples and exercises. That's why I recommend Eloquent Javascript by Marijn Haverbeke.<p><a href="http://eloquentjavascript.net/" rel="nofollow">http://eloquentjavascript.net/</a>
评论 #1764830 未加载
评论 #1767301 未加载
评论 #1764400 未加载
评论 #1766019 未加载
评论 #1764275 未加载
评论 #1767229 未加载
评论 #1767568 未加载
kreekover 14 years ago
The best way I've found to learn JavaScript is through anything by Douglas Crawford. 'JavaScript the Good Parts' is especially good.<p><a href="http://oreilly.com/catalog/9780596517748" rel="nofollow">http://oreilly.com/catalog/9780596517748</a> <a href="http://www.youtube.com/watch?v=hQVTIJBZook" rel="nofollow">http://www.youtube.com/watch?v=hQVTIJBZook</a>
评论 #1764374 未加载
评论 #1765255 未加载
评论 #1765083 未加载
评论 #1766178 未加载
revjxover 14 years ago
Is this the same Mozilla JS reference that's been kicking around for ages? I know there seems to be a big campaign to promote JS resources at the moment, but surely everyone on HN would know about this if they have more than a passing interest in Javascript or learning it...
评论 #1764284 未加载
wazooxover 14 years ago
It is not a tutorial. It's a reference guide.
评论 #1764204 未加载
评论 #1764167 未加载
alexyimover 14 years ago
I like John Resig's tutorial: <a href="http://ejohn.org/apps/learn/" rel="nofollow">http://ejohn.org/apps/learn/</a>
评论 #1767581 未加载
ez77over 14 years ago
A bit off topic: does anybody know why Mozilla uses https for this kind of open stuff?
eelover 14 years ago
I do like the content of MDC, but it can be frustrating at times, as it seems to have broken links (links that go to pages which have had their content merged into a different page).<p>Or apparently, on the Processing XML with E4X page, there are errors in the page: /content/body/div[2]/pre[1]/@function, reference to undefined name 'syntax': line 1, column 1 where every code sample should be.<p>It's under a CC license, so I am hoping that someone will make a better interface for the content some day.
etheraelover 14 years ago
This used to be my sole resource for everything javascript, it is actually very good still but there's a slight catch; beware cross browser compatibility issues, especially with IE, especially especially with older versions of IE.
pyreover 14 years ago
Sorry, I must have missed the download/offline option. Care to link me up?
评论 #1767300 未加载
Tichyover 14 years ago
While we are at it, perhaps somebody could explain this JS gotcha I recently ran into?<p>My goal was to return something like {x:1} (an object) from a script. It never worked. If I type that into a console, it returns "1". If I type x:1 into the console, it also returns 1. So I guess the "{}" is just interpreted as a block, returning the value of the x:1 expression. But what does x:1 mean? I am guessing it might just be a bug in the interpreter? Or when is something an object, and when just a block? var a = x:1 doesn't work, btw. this.x is also still undefined after this.<p>The only way I could return my wanted object was by doing var y = {x:1};y;<p>(This was supposed to be the return value of a Script in NodeJS, using these silly values because it was a unit test).
评论 #1764523 未加载
评论 #1764501 未加载
评论 #1764933 未加载
评论 #1764968 未加载
wtnover 14 years ago
Would be nice if they allowed you to download a tarball of the whole guide.