Mastering JavaScript explore and master modern JavaScript techniques in order to build large-scale web applications
Explore and master modern JavaScript techniques in order to build large-scale web applications About This Book Write powerful code with the high-level functions that JavaScript offers Test and debug issues with JavaScript code using various modern mechanisms Offers an expert's eye on the latest...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing
2016.
|
Edición: | 1st edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630214906719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: JavaScript Primer; A little bit of history; How to use this book; Hello World; An overview of JavaScript; Comments; Variables; Constants; Number; String; Undefined values; Booleans; The instanceof operator; Date objects; The + operator; The ++ and
- operators; Boolean operators; Equality; JavaScript types; Automatic semicolon insertion; JavaScript style guide; Whitespaces; Parentheses, line breaks, and braces; Quotes; End of lines and empty lines; Type checking
- Type castingConditional evaluation; Naming; The eval() method is evil; The strict mode; Running JSHint; Summary; Chapter 2: Functions, Closures, and Modules; A function literal; A function declaration; Functions as data; Scoping; Global scope; Local scope; Function-level scope versus block-level scope; Inline function expressions; Block scopes; Function declarations versus function expressions; The arguments parameter; The this parameter; Invocation as a function; Invocation as a method; Invocation as a constructor; Invocation using apply() and call() methods; Anonymous functions
- Anonymous functions while creating an objectAnonymous functions while creating a list; Anonymous functions as a parameter to another function; Anonymous functions in conditional logic; Closures; Timers and callbacks; Private variables; Loops and closures; Modules; Stylistic considerations; Summary; Chapter 3: Data Structures and Manipulation; Regular expressions; Exact match; Match from a class of characters; Repeated occurrences; Alternatives - OR; Beginning and end; Backreferences; Greedy and lazy quantifiers; Arrays; Maps; Sets; A matter of style; Summary
- Chapter 4: Object-Oriented JavaScriptUnderstanding objects; Behavior of JavaScript objects; Prototypes; Instance properties versus prototype properties; Inheritance; Getters and setters; Summary; Chapter 5: JavaScript Patterns; Design patterns; The namespace pattern; The module pattern; ES6 modules; The factory pattern; The mixin pattern; The decorator pattern; The observer pattern; JavaScript Model-View-* patterns; Model-View-Controller; Models; Views; Controllers; The Model-View-Presenter pattern; Model-View-ViewModel; Summary; Chapter 6: Testing and Debugging; Unit testing
- Test-driven developmentBehavior-driven development; JavaScript debugging; Syntax errors; Using strict; Runtime exceptions; Console.log and asserts; Chrome DevTools; Summary; Chapter 7: ECMAScript 6; Shims or polyfills; Transpilers; ES6 syntax changes; Block scoping; Default parameters; Spread and rest; Destructuring; Object literals; Template literals; Maps and Sets; Symbols; Iterators; For..of loops; Arrow functions; Summary; Chapter 8: DOM Manipulation and Events; DOM; Accessing DOM elements; Accessing specific nodes; Chaining; Traversal and manipulation; Working with browser events
- Propagation