Rough Cut of my JavaScript Book

| 8 Comments

O'Reilly has made a draft of the 6th edition of JavaScript: The Definitive Guide available through their Rough Cuts program. This means that you can buy online access (HTML and PDF) to the current draft of the book today, and then have the print version shipped to you when it is published, for the basic cover price of the book. (See the FAQ for more about how Rough Cuts works).

Online access is through Safari, not directly through O'Reilly, which means that you need to create an account with them in order to do this. But that's a minor hassle if you want the latest version right away.

Part I of the book is finished: complete coverage of ECMAScript 5, along with completely rewritten and modernized chapters on functions, objects and classes.

Part II is being updated for HTML 5 and is still in progress. The first few chapters have been pretty much completely rewritten but a number of chapters are still missing. The Rough Cuts edition will be updated each time I finish a new chapter. If you buy it now you get ongoing access to all the updates.

8 Comments

nice,

How much of html5 are you planning to cover?

Hello David,
I am working with your 5th edition of Javascript Guide - great book. I cannot get the following
code to work:

var request = new HTTP.newRequest();

I always get an error in the browser (IE 8)
that "HTTP" is undefined on the HTTP._factory code line. What am I missing?

Thanks,
eric

Ceron said the meteorological department forecast mainly depends on two indicators, one is the status of theugg boots sale tropical ocean, the other is the sea change, because the latter would have an impact on the atmosphere. Most European countries are in middle and high latitudes, the weather in these areas were difficult to forecast than in many tropical regions.

On page 137 the following line :

everyother = a.filter(function(x,i) { return i%2==0 }); // [5, 3, 1]

should be corrected to :

everyother = a.filter(function(x,i) { return i%2==0 }); // [4,2]

as i%2=0 checks for even numbers.

Just thought I could point this out, nothing major.

Chris,

The examples on page 137 is correct as it stands. It filters the array so that it only includes elements with even indexes: elements 0, 2, and 4. The values of those elements are 5, 3, and 1.

This is very good news,that`ll be continuation of your book. Now I studying actively your 5th edition, and want to express my point of view on one moment. In chapter 9, about classes, while definition of defineClass() method might be better the line
if (p=="classname"||proto.hasOwnProperty(p)) delete proto[p];
instead of
if (proto.hasOwnProperty(p)) delete prop[p];
Because, if we don`t define data.name in PositionRectangle, property "classname" will be inherit from "Rectangle" class.
P.S:sorry for my English: i`m from Ukraine.

Will you be covering commonJS? We hope to look at your writing to help us dive into server side Java scripting and usher Javscript to be another choice in along with Perl, Python, etc.


I downloaded the PDF and online version.

In a few examples (e.g 7.6 Iterating Arrays | 129)
the letter i looks like 1.
Please check

Regards

Saket

Books

ECMAScript 5 & HTML5!

"A must-have reference"
Brendan Eich,
creator of JavaScript

JavaScript graphics makes web programming fun again!

Read Less, Learn More

Comprehensive coverage of Ruby 1.8 and 1.9

"The New Most Important Ruby Book"
Peter Cooper,
rubyinside.com

The classic Java quick-reference

About

Advertising

Pages

Hosted By

Powered by Movable Type 4.21-en