Start reading Object-Oriented JavaScript on the free Kindle Reading App or on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.
Programming Books C Java PHP Python Learn more Browse Programming Books

Deliver to your Kindle or other device

Enter a promotion code
or gift card

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Sorry, this item is not available in
Image not available for
Image not available

Object-Oriented JavaScript [Kindle Edition]

Stoyan Stefanov
4.4 out of 5 stars  See all reviews (41 customer reviews)

Digital List Price: $23.99 What's this?
Print List Price: $39.99
Kindle Price: $14.59
You Save: $25.40 (64%)

If you buy a new print edition of this book (or purchased one in the past), you can buy the Kindle edition for only $2.99 (Save 80%). Print edition purchase must be sold by Amazon. Learn more.


Amazon Price New from Used from
Kindle Edition $14.59  
Paperback $37.99  
Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now

Book Description

The book requires no prior knowledge of JavaScript and works from the ground up to give you a thorough grounding in this powerful language. If you do already know some JavaScript, you will find plenty of eye-openers as you discover just what the language can do. This book takes a do-it-yourself approach when it comes to writing code, because the best way to really learn a programming language is by writing code. You are encouraged to type code into Firebug's console, see how it works and then tweak it and play around with it. There are practice questions at the end of each chapter to help review what you have learned.

Editorial Reviews

About the Author

Stoyan Stefanov is a Yahoo! web developer, Zend Certified Engineer, book author, and contributor to the international PHP community. He talks regularly about JavaScript, PHP, and other web development topics at conferences and his blog and also runs a number of other sites, including - a site dedicated to exploring JavaScript patterns. Stoyan is the engineering lead of Yahoo's performance optimization tool 'YSlow', as well as other open-source tools and 'PEAR' libraries.

Product Details

  • File Size: 1045 KB
  • Print Length: 356 pages
  • Publisher: Packt Publishing (July 23, 2008)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B0057UNEJC
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Lending: Not Enabled
  • Amazon Best Sellers Rank: #456,618 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

Most Helpful Customer Reviews
43 of 46 people found the following review helpful
5.0 out of 5 stars Best JavaScript on Object Oriented Programming August 2, 2008
Object-Oriented JavaScript by Stoyan Stefanov is a first among JavaScript books in my opinion. OOP in JavaScript is not new, but has gained much popularity since the use of JavaScript in Ajax and the development of JavaScript libraries and widgets from various web companies (especially Yahoo!). Learning how to create component-based applications using JavaScript is not an easy thing to master if all you know about JavaScript is doing "mouse-overs" or neat little effects. There really isn't a book out there that really explains how OOP works in JavaScript completely.

There are books from Apress and WROX that are geared towards "intermediate" topics in JavaScript such as creating objects and so forth, but they quickly go into sing custom libraries which really doesn't teach you anything apart from using a library.

This book really goes into detail in explaining how the syntax of JavaScript can be used to create scalable applications from the ground-up. I would say this book is geared for the developer who has a grasp on the language itself but wants to learn more in creating real useful applications for the web using JavaScript and wants to learn without depending on any pre-built library or component.

The author goes into the basics of the language first (chapter 1-2) then spends a chapter on functions (chapter 3) which is the many ways in JavaScript to create objects. Since JavaScript is not a fully OO language, it can get confusing on understanding the many different ways to create an object. Stoyan explains it very well with many examples so anybody can understand it.
Read more ›
Comment | 
Was this review helpful to you?
45 of 51 people found the following review helpful
2.0 out of 5 stars Good book but doesn't deliver what the title promises January 28, 2010
Format:Paperback|Verified Purchase
The book is very well written and contains a lot of great information, but if you're looking to learn how "Create scalable, reusable high-quality javascript applications and libraries", it is nearly useless. There were a total of two chapters that I found useful to a non-novice. One covered inheritance options in incredible details (which is great, since there are so many), and the last chapter gives lip service to covering common OO patterns with javascript. That's about it. "Introduction to creating objects and simple OO patterns in Javascript" would have been a much more apt title.
Was this review helpful to you?
21 of 23 people found the following review helpful
5.0 out of 5 stars Great book for any level programmer October 29, 2008
Format:Paperback|Verified Purchase
This is a well written book, I recommend that everyone wanting to get into javascript programming go pick up this book. I first bought JavaScript: The Definitive guide by Oreily because everyone in the JavaScript community said thats the most detailed book on javascript. But that book was like reading a dictionary and I would get bored with it pretty quick. This book "Object-Oriented Javascript" is a wonderful read, its well structured. Flowing from 1 chapter to another giving you everything you need to know like building blocks laying out a strong foundation.

Before I read this book I wasnt comfortable with javascript at all, but now I feel like I can do just about anything with it. I really liked the chapters on Prototyping and the section on closures work. The author really tries hard to show how javascript works by not only explaining it in laymen terms but also having diagrams to help illustrate his point. The examples are kept short and to the point and he has many examples to help get all his points across.

The way this book is layed out it will make for a good desktop reference.

Stoyan Stefanov, I'm looking forward to any more books you might come out with.
Comment | 
Was this review helpful to you?
15 of 16 people found the following review helpful
2.0 out of 5 stars The Biggest Reason Not to Buy This Book: MDN September 29, 2011
Format:Paperback|Verified Purchase
I found the online Mozilla Developer Network (MDN) "JavaScript Guide" and "JavaScript Reference" to be a more concise and thorough teaching of the JavaScript language. The MDN docs have higher-quality and many more charts/graphs/tables. The code examples are also more meaningful and relevant. Moreover, the MDN docs have coverage on iterators and generators, XML processing with E4X, and a modern look the prototypical object model.

"Chapter 6: Inheritance" is very extensive, covering 12 techniques of achieving differing levels of inheritance. The author makes numerous references to Douglas Crockford's early-day methods of classical inheritance. The problem is Crockford himself states, "I now see my early attempts to support the classical model in JavaScript as a mistake." I feel the author's promotion of the classical approach diminishes the power of JavaScript as a functional/prototype-based language. Besides, most of these inheritance implementations are moot with JavaScript's new native function: Object.create.

"Chapter 8: Coding and Design Patterns" is the only chapter that goes beyond the beginner level. This is also the only chapter of the book that is not directly covered in the MDN documentation. However, this chapter is only 25 pages; barely an overview of such intermediate topics. For an in-depth look at design patterns, I would highly recommend Pro JavaScript Design Patterns (Recipes: a Problem-Solution Ap).
Read more ›
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Good Text book
A good text book
Published 21 days ago by Mr Vette
4.0 out of 5 stars Good book for beginner to intermediate programmers wanting to start...
The book is great for beginning to intermediate programmers who want to start working in JavaScript. I found it made for pleasant, light reading without lacking in substance. Read more
Published 10 months ago by Daniel Lee
5.0 out of 5 stars This book is the reason why I got a high paying Job
I don't care what other people said. This is the best Object-Oriented JavaScript textbook out there. The author had done a marvelous job. Read more
Published 10 months ago by Amazon Customer
3.0 out of 5 stars Good basic book on Object-Oriented Javascript.
It gives a good basic overview of Object Oriented Javascript. However, it doesn't go into enough details. The examples, are rather overly simplistic. Read more
Published 11 months ago by GTO1965
5.0 out of 5 stars An excellent starting spot for beginners and 'fills in the corners'...
This is about the fifth book on JavaScript I have read. I started with Flanagan's JavaScript: The Definitive Guide. Read more
Published 19 months ago by Michael Brenner
4.0 out of 5 stars Very well written
A very well written book. Presents the subject matter in a logical fashion with small steps to show the subtlties and no magic jumps like some programming texts tend to do.
Published 20 months ago by SlowTarget
5.0 out of 5 stars Incredible!
This book is an excellent resource for anyone who wants to learn JavaScript. If you want to learn how to write JavaScript properly, read this book first! Read more
Published 20 months ago by Alex C. Barberi
5.0 out of 5 stars Really an excelent aquisition
This book was written for anyone that wants understand javaScript from basics to advanced concepts. It's easy to read and full of examples
Published 20 months ago by Marcelo L P Afonso
5.0 out of 5 stars THE best beginner book on Javascript programming language
This is my first review in the 7 years that I have been buying stuff on Amazon. Yes, I'm that lazy. So the fact that I dragged my lazy ass to the review section should tell you... Read more
Published 21 months ago by Jash
4.0 out of 5 stars badass
One of those must read Javascript books. If you want to improve your proficiency in JS, please read.
Very helpful.
Published 23 months ago by Ashwin Ramesh
Search Customer Reviews
Search these reviews only

More About the Author

Discover books, learn about writers, read author blogs, and more.

What Other Items Do Customers Buy After Viewing This Item?


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category