“For learning the ins and outs of JavaScript I heartily recommend Eloquent JavaScript”
Eloquent JavaScript
带浏览器内嵌练习环境的 JavaScript 经典入门
Marijn Haverbeke 从语言基础讲到函数、对象、异步编程,再到浏览器 DOM 和 Node.js,并有几个完整的小项目。网页版自带可在浏览器里直接运行和修改的代码,每章有练习。和只讲语法的参考书相比,它更重视编程思维和函数式写法,文风幽默。这里是第四版。
HN 上的人长期把它推荐给想学 JavaScript 的人,理由是内容全面、免费,网页上可以直接运行代码,对各种水平的读者都有收获,也有人提到它有的部分对小孩偏干。
想系统学 JavaScript 的初学者和转行者
怎么读
由 Claude 根据这本书和 HN 上的说法整理,可能有错- 1用网页版阅读,边读边在内嵌编辑器里改代码
- 2每章末的练习都做,卡住了再看提示
- 3函数式编程的章节想读透,可以多花时间
- 4学完基础后做书里的项目章节,再去读浏览器相关部分
HN 书评
推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算“Can't recommend enough this resource: Eloquent JavaScript”
“This is the site I wish I had know about when I started to learn JavaScript: Eloquent JavaScript”
“Eloquent JavaScript <-- Really good”
“For learning Javascript, I used Eloquent JavaScript It's really thorough, and if you get stuck somewhere you can email the author for help.”
“Might be a bit too cut and dry for a 12 year old, but it's got some nice interactive parts to it.”
看全部 20 条 →
“Start with: Eloquent JavaScript (has pdf download)”
“That's why I recommend Eloquent Javascript by Marijn Haverbeke.”
“I found these two excellent reads removed a lot of the ambiguity that I think comes with JavaScript.”
“Those should pretty much cover everything you must know if you are starting now.”
“Here's a great little chapter on functional programming in javascript. Just bear with me and read it - it's extremely worth the trouble.”
“While we're on the topic of great JavaScript references for people learning the language, this one is worth considering: Eloquent JavaScript”
“The resources I have found the most helpful are Zed Shaw's (链接), MIT's OpenCourseWare CompSci classes using Python, and Eloquent JavaScript by Marijn Haverbeke.”
“It is a book that anyone of any skill level can get something out of.”
“JavaScript: Eloquent JavaScript (I recommend the interactive HTML version).”
“I've heard good things about Eloquent JavaScript, which is free and has an interactive REPL right in the browser as you do the tutorial.”
“This chapter from Eloquent Javascript will also help motivate the rationale behind Underscore:”
“Javascript - Eloquent JavaScript”
“Here are some good resources that have helped me:”
“looks to be very promising in terms of brevity and emphasizing hands-on portions”