Eloquent JavaScript: A Modern Introduction to Programming (Google eBook)

Front Cover
No Starch Press, 2011 - COMPUTERS - 205 pages
23 Reviews

"A concise and balanced mix of principles and pragmatics. I loved the tutorial-style game-like program development. This book rekindled my earliest joys of programming. Plus, JavaScript!"—Brendan Eich, creator of JavaScript

JavaScript is the language of the Web, and it's at the heart of every modern website from the lowliest personal blog to the mighty Google Apps. Though it's simple for beginners to pick up and play with, JavaScript is not a toy—it's a flexible and complex language, capable of much more than the showy tricks most programmers use it for.

Eloquent JavaScript goes beyond the cut-and-paste scripts of the recipe books and teaches you to write code that's elegant and effective. You'll start with the basics of programming, and learn to use variables, control structures, functions, and data structures. Then you'll dive into the real JavaScript artistry: higher-order functions, closures, and object-oriented programming.

Along the way you'll learn to:

  • Master basic programming techniques and best practices
  • Harness the power of functional and object-oriented programming
  • Use regular expressions to quickly parse and manipulate strings
  • Gracefully deal with errors and browser incompatibilities
  • Handle browser events and alter the DOM structure

Most importantly, Eloquent JavaScript will teach you to express yourself in code with precision and beauty. After all, great programming is an art, not a science—so why settle for a killer app when you can create a masterpiece?

  

What people are saying - Write a review

User ratings

5 stars
6
4 stars
11
3 stars
1
2 stars
4
1 star
1

Review: Eloquent JavaScript: A Modern Introduction to Programming

User Review  - Jon - Goodreads

A great introduction to JavaScript programming with exercises to get yourself challenged rather than just passive reading. He also has his new edition that should be done this year on his website too. Definitely worth a read. Read full review

Review: Eloquent JavaScript: A Modern Introduction to Programming

User Review  - Trevan Hetzel - Goodreads

Eloquent JavaScript is definitely staying in my bookmarks bar. I've read a few JS books in the past and, whether it was my utter lack of comprehension of JS or the poor presentation of the content, I ... Read full review

Contents

Introduction
1
Basic JavaScript Values Variables and Control Flow
9
Functions
29
Data Structures Objects and Arrays
41
Error Handling
63
Functional Programming
71
ObjectOriented Programming
93
Modularity
129
Regular Expressions
139
Web Programming A Crash Course
151
The Document Object Model
163
Browser Events
173
HTTP requests
189
Index
197
Copyright

Common terms and phrases

About the author (2011)

Marijn Haverbeke is a programming language enthusiast and polyglot. He's worked his way from trivial BASIC games on the Commodore, through a C++ phase, to the present where he mostly hacks on database systems and web APIs in dynamic languages. He created and maintains several popular open source projects.

Bibliographic information