Book description
Thoroughly updated and revised, Eloquent JavaScript, 2nd Edition shows you how to write elegant, effective JavaScript code.
Publisher resources
Table of contents
- Eloquent JavaScript: A Modern Introduction to Programming
- Dedication
- Praise for the First Edition of Eloquent Javascript
- Introduction
-
I. Language
- 1. Values, Types, and Operators
-
2. Program Structure
- Expressions and Statements
- Variables
- Keywords and Reserved Words
- The Environment
- Functions
- The console.log Function
- Return Values
- Prompt and Confirm
- Control Flow
- Conditional Execution
- while and do Loops
- Indenting Code
- for Loops
- Breaking Out of a Loop
- Updating Variables Succinctly
- Dispatching on a Value with switch
- Capitalization
- Comments
- Summary
- Exercises
- 3. Functions
- 4. Data Structures: Objects and Arrays
- 5. Higher-Order Functions
- 6. The Secret Life of Objects
- 7. Project: Electronic Life
- 8. Bugs and Error Handling
-
9. Regular Expressions
- Creating a Regular Expression
- Testing for Matches
- Matching a Set of Characters
- Repeating Parts of a Pattern
- Grouping Subexpressions
- Matches and Groups
- The Date Type
- Word and String Boundaries
- Choice Patterns
- The Mechanics of Matching
- Backtracking
- The replace Method
- Greed
- Dynamically Creating RegExp Objects
- The search Method
- The lastIndex Property
- Parsing an INI File
- International Characters
- Summary
- Exercises
- 10. Modules
- 11. Project: A Programming Language
- II. Browser
- III. Beyond
-
A. Exercise Hints
- Program Structure
- Functions
- Data Structures: Objects and Arrays
- Higher-Order Functions
- The Secret Life of Objects
- Project: Electronic Life
- Bugs and Error Handling
- Regular Expressions
- Modules
- Project: A Programming Language
- The Document Object Model
- Handling Events
- Project: A Platform Game
- Drawing on Canvas
- HTTP
- Forms and Form Fields
- Project: A Paint Program
- Node.js
- Project: Skill-Sharing Website
- JavaScript and Performance
- Updates
- Index
- About the Author
- Copyright
Product information
- Title: Eloquent JavaScript, 2nd Edition
- Author(s):
- Release date: December 2014
- Publisher(s): No Starch Press
- ISBN: 9781593275846
You might also like
book
Eloquent JavaScript, 3rd Edition
JavaScript lies at the heart of almost every modern web application, from social apps like Twitter …
book
Simplifying JavaScript
The best modern JavaScript is simple, readable, and predictable. Learn to write modern JavaScript not by …
book
The Principles of Object-Oriented JavaScript
The Principles of Object-Oriented JavaScript helps experienced programmers understand JavaScript's unique approach to object-oriented programming so …
book
Rediscovering JavaScript
JavaScript is no longer to be feared or loathed - the world's most popular and ubiquitous …