Eloquent JavaScript
A Modern Introduction to Programming
Marijn Haverbeke
Published: 2011
Pages: 224
JavaScript is at the heart of almost every modern Web application, whether it's Google Apps, Twitter, or the newest browser-based game. Though it's simple for beginners to pick up and play with, JavaScript is not a toy—it's a flexible and complex language that can be used to build full-scale applications.
Eloquent JavaScript dives into this flourishing language and teaches you to write code that's beautiful and effective. By immersing you in example code and encouraging experimentation right from the start, the author quickly gives you the tools you need to build your own programs. As you follow along with examples like an artificial life simulation and a version of the classic game Sokoban, you'll learn to:
* Understand the essential elements of programming: syntax, control, and data
* Use object-oriented and functional programming techniques to organize and clarify your programs
* Script the browser and make basic Web applications
* Work with tools like regular expressions and XMLHttpRequest objects
And since programming is an art that's best learned by doing, all example code is available online in an interactive sandbox for you to experiment with. With Eloquent JavaScript as your guide, you can tweak, expand, and modify the author's code, or throw it away and build your own creations from scratch. Before you know it, you'll be fluent in the language of the Web.