Get Ready for Winter Weather Introducing Kindle Unlimited. Your Journey Awaits Men's Clothing Men's Clothing Trend Shop All Men's Clothing Cloud Drive Photos U2 Amazon Fire Phone, now just $0.99 with a two-year contract Amazon Fire TV Grocery Halloween Explore Howl-o-ween Pet Deals The Walking Dead The Walking Dead The Walking Dead Fire tablets Kindle Voyage Today's Deals in Music New Arrivals in Sports & Outdoors Kids' Halloween Store
Programming Books C Java PHP Python Learn more Browse Programming Books
You Don't Know JS: Scope & Closures and thousands of other textbooks are available for instant download on your Kindle Fire tablet or on the free Kindle apps for iPad, Android tablets, PC or Mac.
Buy New
$15.93
Qty:1
  • List Price: $19.99
  • Save: $4.06 (20%)
FREE Shipping on orders over $35.
In Stock.
Ships from and sold by Amazon.com.
Gift-wrap available.
You Don't Know JS: Scope ... has been added to your Cart
Trade in your item
Get a $2.91
Gift Card.
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

You Don't Know JS: Scope & Closures Paperback – March 24, 2014

ISBN-13: 978-1449335588 ISBN-10: 1449335586 Edition: 1st

Buy New
Price: $15.93
35 New from $13.69 12 Used from $14.98
Rent from Amazon Price New from Used from
Kindle
"Please retry"
$4.32
Paperback
"Please retry"
$15.93
$13.69 $14.98
Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

$15.93 FREE Shipping on orders over $35. In Stock. Ships from and sold by Amazon.com. Gift-wrap available.

Frequently Bought Together

You Don't Know JS: Scope & Closures + The Principles of Object-Oriented JavaScript + Node.js the Right Way: Practical, Server-Side JavaScript That Scales
Price for all three: $46.41

Buy the selected items together

NO_CONTENT_IN_FEATURE

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

Product Details

  • Paperback: 98 pages
  • Publisher: O'Reilly Media; 1 edition (March 24, 2014)
  • Language: English
  • ISBN-10: 1449335586
  • ISBN-13: 978-1449335588
  • Product Dimensions: 8.8 x 5.9 x 0.2 inches
  • Shipping Weight: 0.8 ounces (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (34 customer reviews)
  • Amazon Best Sellers Rank: #27,754 in Books (See Top 100 in Books)
  •  Would you like to update product info, give feedback on images, or tell us about a lower price? .


Editorial Reviews

From the Author

The "You Don't Know JS" book series is intended to bring us all (myself included!) to terms with the reality that there's an awful lot of JS that we think we kinda know, but we don't really have total confidence in. Rather than leaving these topics to the misunderstanding, and treating certain things as a black box we can't understand, we dive deeply into them and try to uncover exactly how and why they work.

It is my hope that you will come away from these books with a much deeper confidence in, and appreciation for, JavaScript. Isn't it time we all start really knowing JS?

About the Author

Kyle Simpson is an Open Web Evangelist from Austin, TX. He's passionate about JavaScript, HTML5, real-time/peer-to-peer communications, and web performance. Otherwise, he's probably bored by it. Kyle is an author, workshop trainer, tech speaker, and avid OSS community member.

Customer Reviews

4.4 out of 5 stars
5 star
21
4 star
11
3 star
0
2 star
0
1 star
2
See all 34 customer reviews
If you are a beginner at JavaScript, buy this book!
Robert L. Cochran
It is written very well and it seems as though Kyle is right beside you talking you through the book.
ER
And if you have a physical book, those kind of tomes are heavy.
S. Tang

Most Helpful Customer Reviews

8 of 8 people found the following review helpful By Randal Kamradt on April 4, 2014
Format: Kindle Edition Verified Purchase
Not only does the author know what he's talking about, he knows how to communicate it. As a long time Java programmer, many of the aspects of JavaScript were mysterious and obtuse, or at least the way they were explained made them seem that way. Scope and Closure are two of those aspects and now they seem simple obvious artifacts of the functional nature of the JavaScript language. Now all the patterns that the other books demonstrate but don't bother to explain seem much more clear. I can look at the language with new eyes and new understanding. Highly recommended for anyone that needs an under-the-hood understanding of JavaScript and anyone that wants to side-swipe smug job interviewers that want to trip you up with manufactured mis-understandable code.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
4 of 4 people found the following review helpful By ER on May 5, 2014
Format: Paperback
Let me first start off by saying that I think this book is great! It is written very well and it seems as though Kyle is right beside you talking you through the book. The book is a short read and really attempts to focus on just a few parts of Javascript and explains them from multiple angles using code samples and just plain old explanation. What is great is that Kyle does not just rewrite what he read in another Javascript book/resource/documentation, trust me I read alot of books on programming including javascript and authors do paraphase(copy) other peoples explanations on topics and place it in their book. However Kyle, really put thought into explaining these topics from his own perspective that he thought would give his points the furthest reach.

Now with all the great things I have said about this book I have to give a word of caution. In my opinion I do not think this book is for someone absolutely new to Javascript. This book will more benefit you if you have read another introductory Javascript book(though they are much longer), tried out some Javascript code and scratch your head asking what the heck is going on with this Javascript code.

So in my opinion I would say if you are fresh to Javascript buy this book along with an introductory Javascript book. Make sure you keep this book on hand when you feel yourself with some question about scope and closures because trust me there is no one that has tried Javascript and not have questions regarding scope and closures and this book is top notch in the clarification of those topics.

I look foward to reading the other books in this series when they are released.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
Format: Paperback
Note: I have the eBook version.

This book is like a UNIX command: it does one thing, and it does it well. The shortness of this book is one of its redeeming qualities, as it can be read rather quickly. Some people might like having a handy tome, but most of those tomes seem to be optimized for reference rather than straight reading. And if you have a physical book, those kind of tomes are heavy.

The book covers scope and closures, topics that are not always understood by JavaScript developers with working experience or developers coming from other languages. It's good that the book starts at an intermediate level and assumes you have basic JavaScript knowledge, so it does not have to cover syntax, loops, conditionals, objects, etc. If you are a beginner, stay away.

I didn't think the coverage of left-hand side and right-hand side in chapter 1 was relevant for the book, but that seems to be the only "extraneous" part of the book. The author created four appendix chapters to cover "extra" material.

The coverage of closures was particularly fascinating, because as the author pointed out, we've all seen closures, but we didn't know they were there in the code. The book has the BEST explanation of closures I have read yet. I think Kyle's explanation of closures even trumps John Resig's explanation of closures from his book, "Secrets of the Javascript Ninja."

Overall, I found the book easy to read, and it helped better my understand of these two topics of JavaScript.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 2 people found the following review helpful By astericky on August 10, 2014
Format: Paperback
While this book attempts to demystify javascript scope and closures for javascript developers, it makes the topic mildly less mysterious. After reading this book, I think the explanation of both topics feels unfinished. I may go and re-read this book again. Its like The Good Parts without the immediately good even if controversial ideas in it.

The author rather than try to fit in a full discussion on scope and closures elects to put additional information into an appendix which takes the reader away from very relevant and related questions that would likely further the readers understanding of the subject matter without having to skip all over the place. Usually, I tend to think of an appendix as off topic, related and useful information rather than a way to artificially keep the chapters short.

LHS/RHS scope explanation feels out of place being located in the first few chapters of this book. (Note: On some level I understand the logic of it being here.) Somehow I feel like its a complex theoretical topic being thrown at you right away before you have a solid context. The author probably could be more successful with explaining LHS/RHS scope by starting with day to day scoping problems developers have with their code now. Instead it comes off as too theoretical too fast and if you are not already well versed on compiler theory you can get lost right at the beginning of the book.

The question becomes are we trying to explain scope to developers who do not understand scope or are we trying to sound smart to developers who probably already understand scope.

The other thing I think is lacking with this book's explanation of scope is this and passing scope around and executing functions in a scope outside of their own.
Read more ›
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews