Eloquent JavaScript (small PDF)

Eloquent JavaScript (small PDF)

Author
Marijn Haverbeke
Language
English
Edition
3
Year
2018
ISBN
1593279507
File Type
pdf
File Size
2.3 MiB

IntroductionOn programmingWhy language mattersWhat is JavaScript?Code, and what to do with itOverview of this bookTypographic conventionsValues, Types, and OperatorsValuesNumbersStringsUnary operatorsBoolean valuesEmpty valuesAutomatic type conversionSummaryProgram StructureExpressions and statementsBindingsBinding namesThe environmentFunctionsThe console.log functionReturn valuesControl flowConditional executionwhile and do loopsIndenting Codefor loopsBreaking Out of a LoopUpdating bindings succinctlyDispatching on a value with switchCapitalizationCommentsSummaryExercisesFunctionsDefining a functionBindings and scopesFunctions as valuesDeclaration notationArrow functionsThe call stackOptional ArgumentsClosureRecursionGrowing functionsFunctions and side effectsSummaryExercisesData Structures: Objects and ArraysThe weresquirrelData setsPropertiesMethodsObjectsMutabilityThe lycanthrope's logComputing correlationArray loopsThe final analysisFurther arrayologyStrings and their propertiesRest parametersThe Math objectDestructuringJSONSummaryExercisesHigher-Order FunctionsAbstractionAbstracting repetitionHigher-order functionsScript data setFiltering arraysTransforming with mapSummarizing with reduceComposabilityStrings and character codesRecognizing textSummaryExercisesThe Secret Life of ObjectsEncapsulationMethodsPrototypesClassesClass notationOverriding derived propertiesMapsPolymorphismSymbolsThe iterator interfaceGetters, setters, and staticsInheritanceThe instanceof operatorSummaryExercisesProject: A RobotMeadowfieldThe taskPersistent dataSimulationThe mail truck's routePathfindingExercisesBugs and ErrorsLanguageStrict modeTypesTestingDebuggingError propagationExceptionsCleaning up after exceptionsSelective catchingAssertionsSummaryExercisesRegular ExpressionsCreating a regular expressionTesting for matchesSets of charactersRepeating parts of a patternGrouping subexpressionsMatches and groupsThe Date classWord and string boundariesChoice patternsThe mechanics of matchingBacktrackingThe replace methodGreedDynamically creating RegExp objectsThe search methodThe lastIndex propertyParsing an INI fileInternational charactersSummaryExercisesModulesModulesPackagesImprovised modulesEvaluating data as codeCommonJSECMAScript modulesBuilding and bundlingModule designSummaryExercisesAsynchronous ProgrammingAsynchronicityCrow techCallbacksPromisesFailureNetworks are hardCollections of promisesNetwork floodingMessage routingAsync functionsGeneratorsThe event loopAsynchronous bugsSummaryExercisesProject: A Programming LanguageParsingThe evaluatorSpecial formsThe environmentFunctionsCompilationCheatingExercisesJavaScript and the BrowserNetworks and the InternetThe WebHTMLHTML and JavaScriptIn the sandboxCompatibility and the browser warsThe Document Object ModelDocument structureTreesThe standardMoving through the treeFinding elementsChanging the documentCreating nodesAttributesLayoutStylingCascading stylesQuery selectorsPositioning and animatingSummaryExercisesHandling EventsEvent handlersEvents and DOM nodesEvent objectsPropagationDefault actionsKey eventsPointer eventsScroll eventsFocus eventsLoad eventEvents and the event loopTimersDebouncingSummaryExercisesProject: A Platform GameThe gameThe technologyLevelsReading a levelActorsEncapsulation as a burdenDrawingMotion and collisionActor updatesTracking keysRunning the gameExercisesDrawing on CanvasSVGThe canvas elementLines and surfacesPathsCurvesDrawing a pie chartTextImagesTransformationStoring and clearing transformationsBack to the gameChoosing a graphics interfaceSummaryExercisesHTTP and FormsThe protocolBrowsers and HTTPFetchHTTP sandboxingAppreciating HTTPSecurity and HTTPSForm fieldsFocusDisabled fieldsThe form as a wholeText fieldsCheckboxes and radio buttonsSelect fieldsFile fieldsStoring data client-sideSummaryExercisesProject: A Pixel Art EditorComponentsThe stateDOM buildingThe canvasThe applicationDrawing toolsSaving and loadingUndo historyLet's drawWhy is this so hard?ExercisesNode.jsBackgroundThe node commandModulesInstalling with NPMThe file system moduleThe HTTP moduleStreamsA file serverSummaryExercisesProject: Skill-Sharing WebsiteDesignLong pollingHTTP interfaceThe serverThe clientExercisesExercise HintsProgram StructureFunctionsData Structures: Objects and ArraysHigher-Order FunctionsThe Secret Life of ObjectsProject: A RobotBugs and ErrorsRegular ExpressionsModulesAsynchronous ProgrammingProject: A Programming LanguageThe Document Object ModelHandling EventsProject: A Platform GameDrawing on CanvasHTTP and FormsProject: A Pixel Art EditorNode.jsProject: Skill-Sharing Website

show more...

How to Download?!!!

Just click on START button on Telegram Bot

Free Download Book