JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides) Paperback – May 13, 2011

Last Updated On Tuesday March 31st, 2020
This article contains references to products that we track and research from the Amazon Affiliates Program. We may receive compensation when you click on links to those products. For an explanation to our advertising policy, visit this page.

Is this Cheap?

- The best price we've seen on Amazon in the past 2 months was on . The current price is considered the lowest and a good time to buy.

Table of Contents

currently lowest price

-0.25% Drop

Updated March 31, 2020
Last Sale

Mar 24

for -9 days

Available on


Price Activity

DatePrice ActionChange %Price Level
31 Mar, 2020Price Drop-0.25%lowest
25 Mar, 2020Price Drop-24.13%lowest
24 Mar, 2020Price Drop-22.45%average
16 Mar, 2020Price Increase17.29%highest
13 Mar, 2020Price Drop-14.74%average
Update on 31 Mar, 2020 price change % swings above and below average price

Showing: Area under 0 show price is cheaper than average. Above 0 shows higher price than average.

Best Alternative Recommendations

We also found 2 products that redditors have recommended that are the best alternative to this product or are related accessories.

Recommended in PHP


Recommended in gis

JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides) Paperback – May 13, 2011

Product Details

  • Sold on
  • 0596805527 Amazon ASIN
  • Categories

    Books, Computers & Technology, Programming

Reddit Reviews and Recommendations

  • 17 Reviews
  • May 6, 2018 Last Review Date
  • Aug. 26, 2013 First Seen Review Date
  • 10 Reviewed on Subreddits

    javascript (5)
    learnjavascript (3)
    learnprogramming (2)
    Codecademy (1)
    PHP (1)
    compsci (1)
    exjw (1)
    gis (1)
    node (1)
    webdev (1)

Discussion and Reviews on Reddit

Help! Running javascript within a form inside of a leaflet bindPopup. [R]

1 year, 10 months agopierotofy posted submission on gis.
May 6, 2018

I'm currently trying to serve a div inside a leaflet bindPopup function which is assigned to markers created from a geoJson.

The div in the popup takes properties of a geoJson and assigns them to radio buttons. Currently the popups for each marker display the properties and buttons, but I need to take the checked answer and compare that to the correct answer (also a variable stored inside the geoJson).

The code is below:

onEachFeature: function (feature, layer) {
'<div> <input type="radio" name="answer" id=check1 value="one" checked>' '<br> 
<input type="radio" name="answer" id=check2 value="two" checked>' '<br> 
<input type="radio" name="answer" id=check3 value="three">' '<br> 
<input type="radio" name="answer" id=check4 value="four">' '<br> 
<button id="answerchecker" onclick="answercheck()">Answer</button> 
</div> <script> src="./js/checker.js" </script>');

The script I am trying to use within the bindPopup is as follows:

var radioanswer = document.querySelector('input[name=answer]:checked').value; 

var qanswer =; 

function answercheck() {
    if radioanswer == qanswer{ 
    alert("Correct Answer")
    alert("Wrong Answer")

Currently I believe the button is trying to call the function answercheck() but unable to define it. Which makes me question whether script can be called within a bindPopup.

Any advice or help on how to get this answer validation to work would be really appreciated. I am a complete newbie at js so I apologise in advance if I'm barking up the wrong tree or nonsensical.


1 year, 10 months agopierotofy posted comment on gis.
May 6, 2018

To start, this line:

<pre>if radioanswer == qanswer{ </pre>

Is not valid JS. You need to put parenthesis:

<pre>if (radioanswer == qanswer){ </pre>

Then radioanswer should be assigned within the function block, not outside of it. Otherwise it will always have the same value.

Please, please do not try to improvise Javascript (even if you are not a developer by profession). You will fall into the many confusing pitfalls of the language. Find some time to read (at a minimum) and

It will save you countless hours of troubleshooting.

Who knew... [R]

1 year, 11 months agomeathead80 posted submission on exjw.
April 6, 2018
1 year, 11 months agomeathead80 posted comment on exjw.
April 6, 2018

There's a reason why there is a Javascript book (1096 pages) and another called Javascript: The Good Parts (176 pages).

I think the bible could use a similar treatment.

Tips for JavaScript? [R]

3 years, 1 month agoridicalis posted submission on javascript.
Feb. 23, 2017

What are some common tips and tricks you can tell for new JavaScript developers? I found this post

Any other tips?

3 years, 1 month agoridicalis posted on javascript.
Feb. 23, 2017

The first thing that comes to mind is understanding scope. In particular, if you come from a C-esque language, this might be one of your biggest hangups. Understanding how the scope works before you write your code will inevitably lead to a better-written product.

(tl;dr for the rest of this: know the fundamentals)

The route I came up, I started as an OOP developer and thought JS was a toy language for much of my career. It wasn't until I took the time to understand the language that I came into my own as a JS dev, and it is currently my favorite language to develop for. If you're the book-reading sort, I would suggest the following resources in sequence:

  • JavaScript: The Definitive Guide (David Flanagan)
  • JavaScript: The Good Parts (Douglas Crockford)
  • JavaScript Patterns: Build Better Applications with Coding and Design Patterns (Stoyan Stefanov)

If you follow this link and look at the Frequently Bought Together section, you'll see that these three form a common trifecta. What you can expect:

  • The first book will give you a fundamental understanding of the language (I would personally skip the DOM-related parts, since that's more framework/environment than language)
  • The second book will tell you "Okay, we just gave you a drawer full of knives, here are the ones that won't send you to the hospital"
  • The third book gives you a rationale for how and why to apply the language in certain ways. It deals with JS-specific issues, and also brings in some of the Gang of Four patterns and other best practices.

(edit: added link to Amazon page for the first of the three books, fixed formatting)

What languages do you think will become less relevant in the next ~10 years? [R]

3 years, 3 months agoraze2012 posted submission on learnprogramming.
Dec. 18, 2016


Wondering how things will gravitate in the next few years for job purposes, mainly.

3 years, 3 months agoraze2012 posted on learnprogramming.
Dec. 18, 2016

honestly, the site looks better tailored towards JS than the resources I used back in the day to learn. The generic things I do for a new language is:

  • look at to get a feel for syntax
  • try and do some problems on to practice (it's easier than coming up with and verifying problems by myself IMO)
  • google for important tools/ides/plugins that people like to use with the language after I get a feel for the core language (Don't obsess too much on this step. Or even feel compelled to use these tools. This is just so that I know they exist in the case I'll need a larger scale project done.

for JS specifically, all I'd suggest is to keep using that site if it works, and get comfortable looking through/googling the mozilla docs (closest thing to a Javadoc, I guess). I'd normally point to this book as an offline referece, but JS has changed a lot since the last edition. I'd wait until a new edition comes out before jumping on it.

17 years experience with HTML, CSS... need that last little bit of JavaScript I'm missing [R]

3 years, 7 months agoAug. 4, 2016


3 years, 7 months agonjchava posted on webdev.
Aug. 5, 2016

Absolutely, I was exactly there. I could hack things together, but I always had to work from examples. There was always chunks of code I didn't understand and couldn't manipulate directly. I coudln't track what needed to be changed to get my desired result.

I realized there was only so much I could learn from casual exposure to the language and fiddling/hacking things together. This worked for me with HTML/CSS but not with Javascript. I was missing the fundamentals. I realized I had to suck it up and actually STUDY the language. It was tough, but it was a huge turning point for me.

I tried watching videos, doing codeschool type courses online, trying to build stuff. What worked for me in the end was sucking it up and reading a book, and making examples of every single thing explained in that book. It was the most boring dry reading I have ever done in my life. It was a pain. But I forced myself through it, and it was ultimately worth every ounce of effort that I put in.

Now I can confidently say I understand the language from the bottom up. My career is at a high. I can build full-stack applications using Node.js. Best commitement I ever made.

I recommend you consider it. The book was Javascript: The Definitive Guide. It's dry, verbose, but very thorough.

Is there a "learn python the hard way" equivalent book for JS? [R]

3 years, 10 months agoMoTTs_ posted submission on learnjavascript.
June 1, 2016

I tried learning JS from codeacademy course and watching paid video courses but thanks to my terrible ADD I find myself skipping ahead or lossing interest before fully understanding some concepts/syntax.

Is there anything similar to LPTHW for JS/React ?

3 years, 10 months agoMoTTs_ posted on learnjavascript.
June 1, 2016

I would say either JavaScript: The Definitive Guide or Speaking and Exploring JavaScript

List of books to master JavaScript Development [R]

4 years, 5 months agoOhFudgeYah posted submission on javascript.
Oct. 22, 2015
4 years, 5 months agoOhFudgeYah posted on javascript.
Oct. 23, 2015

Eh, the list is missing David Flanagan's Javascript: The Definitive Guideamazon. It's over four years old now, and a dry read, but it's the best I've read. Obviously, it doesn't cover ES6, but it's a great, thorough place to start. It's sitting on my desk right now.

edit: and, although it isn't free (unlike many of the books on that list), you can grab a used copy for pretty cheap. And uh... I hear there's a dark corner of the internet where you can get pirated books easily. I strongly disagree with such practices, though I do like a thorough preview before I buy.

Learning JS, making me feel more stupid by the minute. [R]

4 years, 6 months agojijilento posted submission on learnjavascript.
Sept. 19, 2015

I have been using many different types of sites, books, and points of reference to try an grasp the basics with hopes of retaining it and being able to implement it once I learn it. The problem I have ran into and I don't know if this is just me is, I will get to the end of chapter review know exactly what I learned, but don't know when to place a block, or when to place a loop. So it ends up where I feel remedial and a certain fit of rage emerges like I am playing LoL and I have to back away from my last remaining computer. My question is, is this something that happened to all while learning this, or am I just a special type of stupid?

4 years, 6 months agojijilento posted on learnjavascript.
Sept. 20, 2015

I feel your pain. Having also recently started, I use a lot of books and watch tutorials. Derek Banas, who is my favorite youtube tutorial maker, just posted this javascript tutorial today. He has a ton of easy to follow videos on a lot of languages. As far as books go, I've got JavaScript: The Definitive Guide. It might be too much info to take in, but it leaves no stone unturned.

For about a week, I was having a lot of trouble with css. Making drop down menus, positioning, and things that I thought should be "pretty basic" were evading me. I got CSS: The Definitive Guide since I liked the JS one so much. I just keep it with me when I'm working on stuff, then use it to work through my problem(and same thing with the JS one).

Anyways, you'll get better with time and practice. Just be patient and don't get frustrated: work through the problems. Also stackoverflow and the mdn are nice resources.

First Year Computer Science Student [R]

4 years, 8 months agobahston_creme posted submission on compsci.
July 15, 2015


4 years, 8 months agobahston_creme posted on compsci.
July 16, 2015

Books. Lots of books. Not textbooks, but actual programming books. I read novels for fun but my most-used and favorite book is my copy of Javascript: The Definitive Guide. Find some of those good books, even if it's the "Learn this language in 24 hours" books and read a lot.

ELIA5 what is any of this? [R]

4 years, 10 months agoMay 15, 2015

I got into web dev about a month ago and learned HTML/CSS and jquery. Then I started to learn Ruby and Rails. I absolutely hated Rails. I didn't think it was bad it just wasn't for me, too much "magic" now I want to check out node.js but I honestly don't really even know what anything is. What is Angular? Who is MongoDB? Magnets how the hell do they work?

4 years, 10 months agoDreDawgg posted on node.
May 16, 2015

Ruby is a huge circlejerk. Node kids tend to be the same way with more a edgy attitude because it really is the hottest shit. The reason its the hottest shit is because of performance.

Node uses V8. V8 Allows us to program closer to metal. Because we can now write servers and clients in a single language it makes code far more portable and less error prone.

With the new ES6,7,8 specifications we get more object oriented things, more perfomance and other cool shit you won't need to worry about until after you've read and mastered this.

After you've read those two books come back.

Why is it better to use a prototype in a case like this? [R]

4 years, 11 months agobetterhelp posted submission on learnjavascript.
April 26, 2015

So I'm having a little trouble understanding. For example, look at this linked list. Why is it better to use a prototype for its methods instead of using the constructor itself?

In other words, why is this

function LinkedList() {
  this._head = null;

LinkedList.prototype.add = function(data) {
  var node = {
    data: data,
    next: null

  if (this._head === null) {
    this._head = node;
  } else {
    var current = this._head;
    while ( {
      current =;
    } = node;

better than doing something like this

function LinkedList() {
  this._head = null;

  this.add = function(data) {
    var node = {
      data: data,
      next: null

    if (this._head === null) {
      this._head = node;
    } else {
      var current = this._head;
      while ( {
        current =;
      } = node;
4 years, 11 months agobetterhelp posted on learnjavascript.
April 26, 2015

No worries. I'm a novice-intermediate JSer, but I've been reading JavaScript: The Definitive Guide and its a great reference. Heavy, but good.

Best current JavaScript book to pick up that delves a little deeper? [R]

5 years, 6 months agofofgrel posted submission on javascript.
Sept. 24, 2014

Hey guys,

So I'm in the process of teaching myself JavaScript through various online resources and have reached a point where I would like to supplement my learning with a physical book. I've currently completed codeacademy on js, appendTo videos and treehouse js foundations. I consider myself to have all the basics down pretty solidly but would like to keep learning and delve deeper into the language. I was wondering if somebody could recommend me a book that surpasses the basics and helps me understand nuances and more intermediate / advanced aspects.

I've currently ordered crockfords the good parts from amazon, but I'm starting to get cold feet about it as it was written in 2008 and surely must be at least somewhat outdated and was thinking there must be a newer book that touches on the same stuff.

Any advice is appreciated.

5 years, 6 months agofofgrel posted on javascript.
Sept. 24, 2014

JavaScript: The Definitive Guide. It's long, but very thorough.

Best book or tutorial for JavaScript. With a focus on using it in a website. [R]

5 years, 7 months agophao posted submission on learnprogramming.
Sept. 2, 2014

Most books seem to be mostly about the language and its syntax. What's the best resource for actually using js on a site. I can write functions and programs but I need the basics of integrating it into the HTML. Book/course/tutorial, doesn't natter to me.

Also I use rails to develop if there's anything rails specific.

5 years, 7 months agophao posted on learnprogramming.
Sept. 2, 2014

Eloquent JavaScript ( has chapters on JavaScript for web programming (chapters 12 to 19).

As far as I know, JavaScript The Definitive Guide ( also has several chapters on JavaScript for the web.

I need some advices to continue learning [R]

6 years agomobcat40 posted submission on PHP.
March 17, 2014

Hi guys !

I'm a web designer (or front-end developper as they like to call themselves).

I learned the basics of PHP 10 years ago and just finished the Codecademy course to freshen up my syntax and it went very well, it feels like Javascript :)

I decided to return to my first love because :

  • PHP is everywhere and easy to setup (<?php ?>)
  • I'm currently hosting ~30 websites on LAMPs
  • I even have a LLMP stack on my cellphone (might call it ALMP :P)
  • I create websites with Joomla and Wordpress
  • I need to modify and create extensions for these CMSes

Now, I want to develop my own apps. I know the basics & syntax but I don't know where to start.

Should I go straight with a framework ?

If so, which one ? If not, how do I start an app without?

Can I use any framework to make extensions ?

I am comfortable with MVC, I was learning Python Flask but I decided to return to my first love.

6 years agomobcat40 posted on PHP.
March 17, 2014

Sure, though I've also read people in your position are better at building apps with JS if they're new to it because things like PHP are completely different in how you start growing an app (classical vs prototypal inheritance) not to mention that if you also do PHP instead of just straight JS you're getting used to and learning 2 languages that are completely different in how you code. In either case you're right you have to learn JS anyway, here are the best resources after codeacademy basics stuff:

JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides):

JavaScript: The Good Parts:

Programming JavaScript Applications: Robust Web Architecture with Node, HTML5, and Modern JS Libraries:

A cool talk from last year of the Fluent conference (and the author of that last book) explaining how different something like PHP and JavaScript are and why JS doesn't deserve the bad rap it used to get (He's a pretty cool guy from Adobe and I got to talk to him last week about all of these things we're talking about right now and where web development is heading, and why JS as a single language for the web can work even better):

This was a really cool overview on JS today, and you get to see Unreal Tournament and the Unreal 4 engine run in a web browser:

What is (currently) the best book for beginners? [R]

6 years, 2 months agovoidpirate posted submission on javascript.
Jan. 15, 2014

Hi there!

Firstly, I'd like to apologize - these beginner posts must get annoying.

Now onto the good stuff.

I've been searching all over for a recommendation for a 'Javascript for beginners' book. Sadly, all of the forums and other recommendations have been from like 3+ years ago, and I'd rather have something more current.

I know a good bit of HTML/CSS. I did the course on Code Academy, but have gone way past that from teaching myself (but I wouldn't call myself an expert). I started doing the Javascript course on CA, but I really don't like how it's set up.

So, does anyone have a recommendation for a current book that is logical and easy to follow?


6 years, 2 months agovoidpirate posted on javascript.
Jan. 15, 2014

I would recommend personally. JavaScript: The Definitive Guide

Best way to learn javascript? [R]

6 years, 4 months agoMrPowersAAHHH posted submission on javascript.
Nov. 28, 2013

Hello everyone, I have recently became interested in coding and would like to know what is the best way to learn Javascript. I used websites like codeacademy and started using and khansacademy, but would like to know from those that are experienced what their best way to learn was. I have recently finished HTML/CSS on codeacademy so I have the beginners idea or, at least, a gist of how HTML/CSS works.

Thank you!

6 years, 4 months agoMrPowersAAHHH posted on javascript.
Nov. 29, 2013

Since you don't have prior programming experience, I recommend JavaScript: The Definitive Guide and strongly suggest not reading Crockford's JavaScript: The Good Parts.

I created a website called CodeQuizzes to teach programming with hands on practice. Here is a link to the first quiz in the Basic JavaScript series.

"Function Call" exercize is giving me issues [R]

6 years, 7 months agoNeres28 posted submission on Codecademy.
Aug. 25, 2013

In this exercise, I'm supposed to call the getMaxnum function inside of the doubleMax function. When I call doubleMax outside of any of the variables, the code seems to work. However, Codecademy is telling me that it doesn't work. <==What I submitted <==Proof code works

What am I doing wrong?

UPDATE: I skipped that lesson out of frustration and moved on to the next one (which was a slightly more complicated version of the same principle), and that one worked perfectly.

Could the problem be with the Codecademy site?

6 years, 7 months agoNeres28 posted on Codecademy.
Aug. 26, 2013

They are essentially identical.

<pre>function functName(...) </pre>

is referred to as a function statement whereas

<pre>var varName = function(...) </pre>

is called a function literal. You can also name the function in a function literal:

<pre>var varName = function functName(...) // useful for recursive functions. </pre>

Function literals are used (for example) when passing a function to another function.

Functions are covered in length in Chapter 8 of this book; my recommended resource for anyone serious about learning JavaScript.