The Principles of Object-Oriented JavaScript
Publisher: No Starch Press
Released: February 2014
Pages: 120

If you've used a more traditional object-oriented language, such as C++ or Java, JavaScript probably doesn't seem object-oriented at all. It has no concept of classes, and you don't even need to define any objects in order to write code. But don't be fooled—JavaScript is an incredibly powerful and expressive object-oriented language that puts many design decisions right into your hands.

In The Principles of Object-Oriented JavaScript, Nicholas C. Zakas thoroughly explores JavaScript's object-oriented nature, revealing the language's unique implementation of inheritance and other key characteristics. You'll learn:

  • The difference between primitive and reference values
  • What makes JavaScript functions so unique
  • The various ways to create objects
  • How to define your own constructors
  • How to work with and understand prototypes
  • Inheritance patterns for types and objects


The Principles of Object-Oriented JavaScript will leave even experienced developers with a deeper understanding of JavaScript. Unlock the secrets behind how objects work in JavaScript so you can write clearer, more flexible, and more efficient code.
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyThe Principles of Object-Oriented JavaScript
 
4.3

(based on 7 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (3)

  • 3 Stars

     

    (1)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

86%

of respondents would recommend this to a friend.

Pros

  • Easy to understand (5)
  • Concise (4)
  • Helpful examples (3)
  • Well-written (3)

Cons

    Best Uses

    • Intermediate (6)
      • Reviewer Profile:
      • Developer (5)

    Reviewed by 7 customers

    Sort by

    Displaying reviews 1-7

    Back to top

     
    3.0

    Bad Start for Beginners

    By Andy

    from Seattle, WA

    About Me Student

    Verified Buyer

    Pros

      Cons

      • Difficult to understand

      Best Uses

      • Intermediate

      Comments about oreilly The Principles of Object-Oriented JavaScript:

      I've been learning Java for six months and thought this would be a good resource for learning JavaScript from 0. I didn't find this book helpful at my level. Maybe if I had had years of experience in programming instead of months, then jumping into the deep end in JavaScript would have been more pleasant. For me it was a slog through concepts I could understand but not put to practical use or even remember after putting the book down, followed by lists of functions/methods presented like API documentation. I'll only come back to this book after learning JS from another resource.

      I would only recommend this for programmers with a good knowledge base of JavaScript or significant experience in another language.

       
      4.0

      very interesting book

      By SalvoS

      from Milan, Italy

      Verified Buyer

      Comments about oreilly The Principles of Object-Oriented JavaScript:

      Very well organized book.

       
      4.0

      Very good

      By Alvaro

      from Lisbon, PT

      About Me Developer

      Verified Buyer

      Pros

      • Easy to understand
      • Helpful examples

      Cons

        Best Uses

        • Intermediate

        Comments about oreilly The Principles of Object-Oriented JavaScript:

        Simple yet complete, a very good introduction to javascript for object oriented developers.

         
        4.0

        A good point of start

        By fsilva

        from Azores, Portugal

        About Me Developer

        Verified Buyer

        Pros

        • Concise
        • Easy to understand
        • Well-written

        Cons

          Best Uses

          • Intermediate
          • Novice

          Comments about oreilly The Principles of Object-Oriented JavaScript:

          I use it as a helper or a way of finding things that are not so clear regarding javascript.

          It help me a lot in may current project.

           
          5.0

          Exactly what I was looking for

          By Nicholas Flees

          from Chicago, IL

          About Me Designer, Developer

          Verified Buyer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Well-written

          Cons

            Best Uses

            • Intermediate
            • Novice
            • Student

            Comments about oreilly The Principles of Object-Oriented JavaScript:

            Because I have used JavaScript only periodically and to accomplish very specific tasks, my knowledge of the language was extremely limited. Though I could write code that worked and did what I needed to do, I often could not understand JavaScript that others had written.

            I bought this book when I began working with D3.js and it was extremely helpful. I could read through Mike Bostock's examples with ease. Thanks for writing this book!

             
            5.0

            Perfectly Concise OO

            By MonkeyIsNull

            from Washington, DC

            About Me Developer

            Pros

            • Accurate
            • Concise
            • Easy to understand
            • Helpful examples
            • Well-written

            Cons

              Best Uses

              • Expert
              • Intermediate

              Comments about oreilly The Principles of Object-Oriented JavaScript:

              There are a ton of books on JavaScript and quite a few of them are good. However, there are very few of them I would recommend, mostly I just tell people: find one that looks good and get it, it doesn't really matter in the end. This one is a must read though. I can't imagine that one would get to an advanced understanding of JavaScript without the knowledge contained in the book. Sure you can buy Secrets of the JavaScript Ninja and work your way through that - and you should, but POOJS is perfectly concise in explaining how OO works in JavaScript, which tends to be a confusing subject for most programmers. As a bonus you'll learn quite a bit about the internals of the JavaScript language (which you actually DO need to know).

              If you didn't know that JavaScript has Accessor Properties with get/set, or what Object.defineProperty does, or Object.seal or Object.preventExtensions - then you need this book, because at some point in your coding career, you will run across them. And yes, there are good use cases for them, and once you know what they are for, no doubt you'll have times you'll want to use them.

              The examples included are perfect for the subject area, which consistently seems to be a problem with programming books these days. For that alone the author deserves kudos. The inheritance example is priceless, I've seen countless number of convoluted ways to build a class hierarchy, but the one included is the most clear and concise around.

              The only bad thing about the book is that it had to end. But 92 pages minus the index is probably just about right and to be honest, I'm getting tired of the 400+ page bloated books our industry churns out. This one was a relief. I don't recommend this book if you're expecting it to be about WebDev, or if you're looking to just start learning the JavaScript language itself, but once you've been slinging it for awhile and have gotten fed up with the way it works and experience all the "Why can't I just ...." this is book you should get.

              I did receive the book via the OReilly Bloggers Program in return for this review, however I read some reviews *ahem* elsewhere, and found them a little too good to be true, so I was ready to not believe this book would be that good. I was wrong.

               
              5.0

              A great introduction for those new to JS

              By Florian

              from France

              About Me Developer

              Verified Reviewer

              Pros

              • Concise
              • Easy to understand
              • Helpful examples

              Cons

                Best Uses

                • Intermediate

                Comments about oreilly The Principles of Object-Oriented JavaScript:

                Having worked quite a bit with languages such as C++ and Java, JavaScript was for me a bit of a surprise. Nicholas explains the OOP concepts of JS in a very straight-forward manner making it easy to follow. As a nice side effect I feel like I have not only learned a lot about OOP in JS but also a lot about JS in general.

                Displaying reviews 1-7

                Back to top

                 
                Buy 2 Get 1 Free Free Shipping Guarantee
                Buying Options
                Immediate Access - Go Digital what's this?
                Ebook: $19.95
                Formats:  ePub, Mobi, PDF
                Print & Ebook: $27.45
                Print: $24.95