Modern JavaScript: Develop and Design

Welcome to the companion Web pages for the book Modern JavaScript: Develop and Design, written by Larry Ullman and published by Peachpit Press (ISBN 0-321-81252-2). The book was published in February 2012.

Modern JavaScript: Develop and Design was written to teach JavaScript as a complete programming language. The book does so using practical examples and emphasizing approaches that represent how the language should truly be used today. You’ll learn sound Web development theory, relying heavily upon unobtrusive JavaScriptprogressive enhancement, and object detection, among other concepts. At the same time, you’ll also walk away with plenty of usable code and many examples that are applicable to today’s Web. There’s even a chapter on using JavaScript and PHP together to create a complete, functional, and reliable Web application (the basis of an auction site).

Other Resources

Beside the handful of pages dedicated to this book, there’s plenty of other content on in which you might be interested. Use the “Post Categories” links above to browse by general topic. Any post that’s pertinent specifically to this edition of this book will also have the “jsdd” tag (also accessible through the “Extras” link on right).


You can download the code for the book using the link below. If you have any questions or problems, I’d recommend using the book’s corresponding support forum, where you’ll get the fastest answer. Some things you should know:

  • Although these scripts are named  as they are in the book, they do include any updates and changes as warranted by errors that were found after publication. Thus, if you are having problems with a particular script, download the most current version here or check the errata section.
  • The URLs as referenced in the book are not available for execution online.
  • These scripts have been formatted with line breaks that will work on most systems running most text editors. If you have difficulty opening a script, try:
    • adjusting the way your text editor treats text files
    • using a different text editor, if possible
    • posting a message to the online forum, asking for help

Complete Set of Scripts (236 KB, last modified 06/13/2012)

28 responses to Modern JavaScript: Develop and Design

  1. Hi Larry

    You may not remember me, but I am a great fan of your books ‘php6 and MySQL5′ and ‘advanced php’.

    I bought ‘Modern JavaScript Develop and Design’ as soon as it came out and think that it is great and am thoroughly enjoying reading it.

    One error that I think you missed though:…

    On page 210, shouldn’t:…


    actually be:….


    Best regards

    Max Kite

  2. tom impelluso May 25, 2012 at 2:09 am

    Larry, I am using JavaScript book to learn JavaScript. I know what HTML is and can deduce a lot.

    But I am up against a wall on your page 106, item Number 9.

    You say: The function must return a value of false….

    However nothing goes wrong if I make it return true.

    Could you elaborate on this. That return in javascript is critical. I have gotten as far as chapter 6 and can deduce a lot on html. But that statement in 9. is NOT self contained. Could you explain more

    • Hello Tom. If you’re having problems with this bit of code or explanation, please use the support forums where I’ll be happy to assist.

  3. I really enjoy by reading this book, very professional

    i hope make another book for JQuery with the same way of teaching

  4. The NOTE on page 224 distinguishing parameters from arguments is excellent, but in many instances after
    that in Chapter 7, parameter is used where argument should be used. My students would appreciate having this
    cleaned up in a future printing.

  5. modern javascript book is amazing . lerry sir can u tell me what does it mean when u say random number 0 inclusive and 1 exclusive i am a bit confused ?

  6. Hi Larry,
    I’m starting Uni this year and want to buy your book for the class I’m taking. I was wondering which would be better to buy – The eBook or the physical Textbook? I suppose it just depends on preference but, what do you think?

  7. Hi Larry, Great book! It’s better than the ones I’ve read in the past, but I noticed that page 137 has an error with logical operators, not sure if someone already addressed this to you.
    The second paragraph on page 137, your book states that
    var x = 5;
    if ( ( 0 < x) && (x < 10) ) { // TRUE!

    should be false. Actually that entire segment on the "or" ( || ) is wrong. I think it's just a typo.


  8. Hi larry. Will you be releasing a book on jquery anytime soon? :)

  9. I love this book, it’s really helping me to develop a level of confidence in web programming … I found a typo error in section 5.2, concerning logical operators where the example code is using ‘&&’ in an example that should be using ‘||’ … not a big deal for people who have some development experience but might trip up a new student.

  10. I tried 4 different books, signed up on two sites that charge on a per-month basis, and wasted 4 and a half months trying to learn JavaScript all to no avail. I wish I had gotten Modern JavaScript sooner. I thought this was meant for intermediate and up users which is why I didn’t pick it up at first. I really like your style of teaching. I’ll re-read this book and take a look at more intermediate+ books before I get your book about PHP. Please consider writing more books (like for jQuery)! You have a gift of teaching.

    Thanks again for teaching me JavaScript!

Trackbacks and Pingbacks:

  1. “Modern JavaScript: Develop and Design” Exists! – Larry Ullman - February 22, 2012

    […] for their interest in the book and for their patience.The official Web site for the book is You can view the book’s Table of Contents there, too. And I’ve created a support forum […]

  2. Two More JavaScript Articles Posted Online! – Larry Ullman - March 30, 2012

    […] Online!Peachpit Press has published the second and third articles I wrote in support of my “Modern JavaScript: Develop and Design” book. The second is “The 10 Best JavaScript Development and Design Habits“. In it, […]

  3. What is Larry Thinking? #53 => Writing and Working – Larry Ullman - April 2, 2012

    […] is the best medium for it.On the Web => Three JavaScript Articles I WroteIn support of my “Modern JavaScript: Develop and Design” book, I wrote three articles to be published online by Peachpit Press. All three are now […]

  4. What is Larry Thinking? #56 => Istanbul – Larry Ullman - June 11, 2012

    […] Well, if you’re prudent about what HTML5 features you use, that is. For example, in my “Modern JavaScript: Develop and Design” book, I use several of the new HTML5 form elements as they get treated as plain text […]

  5. design blog of Neil Fenton - December 11, 2012

    […] Instead I think I’m going to focus my efforts on finishing Larry Ullman’s book Modern Javascript, which I purchased early on in the semester. I also want to finish UX Design, which I purchased for […]

  6. Book review: Modern JavaScript – Develop and Design » Wingerlang - January 21, 2013

    […] Modern JavaScript – Develop and Design by Larry Ullman Released: 2912 Price: $31 / £30 Pages: 592 (+ index etc) […]

  7. Modern JavaScript: Develop and Design | Seattle Ninja - March 17, 2014

    […] I would strongly recommend this book. All programmers make mistakes, it is inevitable. I found a typo in his book but it happens and he keeps a log of silly little errors like that. Imagine, you miss a period or a […]

Comments are great, but I'd strongly prefer any requests for assistance get made in the support forums. Thanks!