You Don't Know JS: Scope & Closures [Book] - O'Reilly Media

文章推薦指數: 80 %
投票人數:10人

No matter how much experience you have with JavaScript, odds are you don't fully understand the language. This concise yet in-depth guide takes you inside ... Skiptomaincontent GetfullaccesstoYouDon'tKnowJS:Scope&Closuresand60K+othertitles,withfree10-daytrialofO'Reilly. There'salsoliveonlineevents,interactivecontent,certificationprepmaterials,andmore. Startyourfreetrial YouDon'tKnowJS:Scope&Closures byKyleSimpson ReleasedMarch2014 Publisher(s):O'ReillyMedia,Inc. ISBN:9781449335588 ExploreapreviewversionofYouDon'tKnowJS:Scope&Closuresrightnow. O’Reillymembersgetunlimitedaccesstoliveonlinetrainingexperiences,plusbooks,videos,anddigitalcontentfrom200+publishers. BuyonAmazon Startyourfreetrial Bookdescription NomatterhowmuchexperienceyouhavewithJavaScript,oddsareyoudon’tfullyunderstandthelanguage.Thisconciseyetin-depthguidetakesyouinsidescopeandclosures,twocoreconceptsyouneedtoknowtobecomeamoreefficientandeffectiveJavaScriptprogrammer.You’lllearnhowandwhytheywork,andhowanunderstandingofclosurescanbeapowerfulpartofyourdevelopmentskillset.Likeotherbooksinthe"YouDon’tKnowJS"series,ScopeandClosuresdivesintotrickierpartsofthelanguagethatmanyJavaScriptprogrammerssimplyavoid.Armedwiththisknowledge,youcanachievetrueJavaScriptmastery.Learnaboutscope,asetofrulestohelpJavaScriptengineslocatevariablesinyourcodeGodeeperintonestedscope,aseriesofcontainersforvariablesandfunctionsExplorefunction-andblock-basedscope,“hoisting”,andthepatternsandbenefitsofscope-basedhidingDiscoverhowtouseclosuresforsynchronousandasynchronoustasks,includingthecreationofJavaScriptlibraries Showandhidemore Publisherresources View/SubmitErrata TableofcontentsProductinformation Tableofcontents Foreword Preface Mission Review ConventionsUsedinThisBook UsingCodeExamples Safari®BooksOnline HowtoContactUs 1.WhatIsScope? CompilerTheory UnderstandingScope TheCast BackandForth CompilerSpeak Engine/ScopeConversation Quiz NestedScope BuildingonMetaphors Errors Review QuizAnswers 2.LexicalScope Lex-time Look-ups CheatingLexical eval with Performance Review 3.FunctionVersusBlockScope ScopeFromFunctions HidinginPlainScope CollisionAvoidance Globalnamespaces Modulemanagement FunctionsasScopes AnonymousVersusNamed InvokingFunctionExpressionsImmediately BlocksasScopes with try/catch let Garbagecollection letloops const Review 4.Hoisting ChickenortheEgg? TheCompilerStrikesAgain FunctionsFirst Review 5.ScopeClosure Enlightenment NittyGritty NowICanSee LoopsandClosure BlockScopingRevisited Modules ModernModules FutureModules Review A.DynamicScope B.PolyfillingBlockScope Traceur ImplicitVersusExplicitBlocks Performance C.Lexicalthis D.Acknowledgments Colophon Copyright Showandhidemore Productinformation Title:YouDon'tKnowJS:Scope&Closures Author(s):KyleSimpson Releasedate:March2014 Publisher(s):O'ReillyMedia,Inc. ISBN:9781449335588 Youmightalsolike book 40AlgorithmsEveryProgrammerShouldKnow by ImranAhmad Learnalgorithmsforsolvingclassiccomputerscienceproblemswiththisconciseguidecoveringeverythingfromfundamental… book YouDon'tKnowJS:this&ObjectPrototypes by KyleSimpson NomatterhowmuchexperienceyouhavewithJavaScript,oddsareyoudon’tfullyunderstandthe… book YouDon'tKnowJS:Types&Grammar by KyleSimpson NomatterhowmuchexperienceyouhavewithJavaScript,oddsareyoudon’tfullyunderstandthe… book YouDon'tKnowJS:Up&Going by KyleSimpson It’seasytolearnpartsofJavaScript,butmuchhardertolearnitcompletely—orevensufficiently—whether… Don’tleaveempty-handed GetMarkRichards’sSoftwareArchitecturePatternsebooktobetterunderstandhowtodesigncomponents—andhowtheyshouldinteract. It’syours,free. Getitnow Close



請為這篇文章評分?