Book description
This is an exciting time to learn JavaScript. Now that the latest JavaScript specification—ECMAScript 6.0 (ES6)—has been finalized, learning how to develop high-quality applications with this language is easier and more satisfying than ever. This practical book takes programmers (amateurs and pros alike) on a no-nonsense tour of ES6, along with some related tools and techniques.
Author Ethan Brown (Web Development with Node and Express) not only guides you through simple and straightforward topics (variables, control flow, arrays), but also covers complex concepts such as functional and asynchronous programming. You’ll learn how to create powerful and responsive web applications on the client, or with Node.js on the server.
- Use ES6 today and transcompile code to portable ES5
- Translate data into a format that JavaScript can use
- Understand the basic usage and mechanics of JavaScript functions
- Explore objects and object-oriented programming
- Tackle new concepts such as iterators, generators, and proxies
- Grasp the complexities of asynchronous programming
- Work with the Document Object Model for browser-based apps
- Learn Node.js fundamentals for developing server-side applications
Publisher resources
Table of contents
- Preface
- 1. Your First Application
- 2. JavaScript Development
-
3. Literals, Variables, Constants, and Data Types
- Variables and Constants
- Variables or Constants: Which to Use?
- Identifier Names
- Literals
- Primitive Types and Objects
- Numbers
- Strings
- Special Characters
- Booleans
- Symbols
- null and undefined
- Objects
- Number, String, and Boolean Objects
- Arrays
- Trailing Commas in Objects and Arrays
- Dates
- Regular Expressions
- Maps and Sets
- Data Type Conversion
- Conclusion
- 4. Control Flow
- 5. Expressions and Operators
- 6. Functions
- 7. Scope
- 8. Arrays and Array Processing
- 9. Objects and Object-Oriented Programming
- 10. Maps and Sets
- 11. Exceptions and Error Handling
- 12. Iterators and Generators
- 13. Functions and the Power of Abstract Thinking
- 14. Asynchronous Programming
- 15. Date and Time
- 16. Math
-
17. Regular Expressions
- Substring Matching and Replacing
- Constructing Regular Expressions
- Searching with Regular Expressions
- Replacing with Regular Expressions
- Input Consumption
- Alternation
- Matching HTML
- Character Sets
- Named Character Sets
- Repetition
- The Period Metacharacter and Escaping
- Grouping
- Lazy Matches, Greedy Matches
- Backreferences
- Replacing Groups
- Function Replacements
- Anchoring
- Word Boundary Matching
- Lookaheads
- Constructing Regexes Dynamically
- Conclusion
- 18. JavaScript in the Browser
- 19. Node
- 20. Object Property Configuration and Proxies
- 21. Additional Resources
- A. The Terminal
- B. Version Control with Git
- C. Reserved Words
- D. Operator Precedence
- Index
Product information
- Title: Learning JavaScript, 3rd Edition
- Author(s):
- Release date: February 2016
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491914915
You might also like
book
You Don't Know JS: Up & Going
It’s easy to learn parts of JavaScript, but much harder to learn it completely—or even sufficiently—whether …
book
Node.js: Novice to Ninja
Node.js: Novice to Ninja is your hands-on guide to learning everything needed to build a professional …
book
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow, 3rd Edition
Through a recent series of breakthroughs, deep learning has boosted the entire field of machine learning. …
book
Take Control of the Mac Command Line with Terminal, 3rd Edition
Learn how to unleash your inner Unix geek! Version 3.2.1, updated December 23, 2022 Release your …