Eloquent Javascript - free Online Book with a console to try the language.
eloquentjavascript.net
eloquentjavascript.net
But long blocks of text are good for story-telling (well, narrative story-telling). The subject of programming and its syntax is more like that of a machine or process, and so eloquence in longform prose is not a strong teaching aid.
While the teaching and demonstration of programming needs better writers and speakers, that does not mean that it needs more straightforward prose. The lack of good prose can be a good thing, in cases where the density of text obscures the main, simple point (insert obligatory link to the work of Edward Tufte)
There is also a CoffeeScript "port" of the book, since Eloquent JavaScript is open content: http://autotelicum.github.com/Smooth-CoffeeScript/
That said, Chapter 7 of the web edition begins this way:
> This chapter does not introduce any new JavaScript-specific concepts. Instead, we will go through the solution to two problems, discussing some interesting algorithms and techniques along the way. If this does not sound interesting to you, it is safe to skip to the next chapter.
So maybe the author or the publisher (or both?) decided that chapter was a distraction or somehow wrong for the printed version.
I was hoping for something longer...
This was previously posted 681 days ago: http://news.ycombinator.com/item?id=1056132
And now you can Javascript in the browser itself!
I read this book the week before I began a JavaScript class in college, and the first hundred pages alone were enough to get me through the course.