small medium large xlarge

CoffeeScript: Accelerated JavaScript Development


Cover image for CoffeeScript


Accelerated JavaScript Development


CoffeeScript is JavaScript done right. It provides all of JavaScript’s functionality wrapped in a cleaner, more succinct syntax. In the first book on this exciting new language, CoffeeScript guru Trevor Burnham shows you how to hold onto all the power and flexibility of JavaScript while writing clearer, cleaner, and safer code.

See the latest edition here.

About this Title

Pages: 160
Published: 2011-07-25
Release: P1.0 (2011-07-25)
ISBN: 978-1-93435-678-4

CoffeeScript: Accelerated JavaScript Development offers a thorough introduction to this new language, starting from the basics. You’ll learn to use time-saving features like list comprehensions and splats, organize your code into modules with extensible classes, and see how to deploy your work to multiple environments. Each chapter is example-driven and includes challenging exercises to push your CoffeeScript know-how further.

Through the course of the book, you’ll build a fast-paced multiplayer word game‚ writing both the client (with jQuery) and server (with Node.js) in CoffeeScript. And because the two languages are so deeply intertwined, you’ll deepen your understanding of JavaScript along the way.

CoffeeScript makes it easier than ever to write powerful, standards-compliant JavaScript code. This book lets you start doing it today.

David Heinemeier Hansson, Creator, Rails, says:

“It’s hard to imagine a new web application today that doesn’t make heavy use of JavaScript, but if you’re used to something like Ruby, it feels like a significant step down to deal with JavaScript, more of a chore than a joy. Enter CoffeeScript: a pre-compiler that removes all the unnecessary verbosity of JavaScript and simply makes it a pleasure to write and read. Go, go, Coffee! This book is a great introduction to the world of CoffeeScript.”

Brendan Eich, Creator, JavaScript says:

“This book helps readers become better JavaScripters in the process of learning CoffeeScript. What’s more, it’s a blast to read, especially if you are new to CoffeeScript and ready to learn.”

Sam Stephenson, Programmer, Creator of, Prototype JavaScript framework says:

CoffeeScript: Accelerated JavaScript Development is an excellent guide to CoffeeScript from one of the community’s most esteemed members. It’ll help you get up to speed with the language in no time, whether you write code that runs in the browser or on the server. Trevor’s book belongs on every CoffeeScript developer’s shelf.”

Read the reviews .

Contents & Extracts

Full Table of Contents


  • Acknowledgments


  • Getting Started
  • Functions, Scope and Context
  • Collections and Iteration excerpt
  • Modules and Classes
  • Web Interactivity with jQuery
  • Server-side Apps with Node.js excerpt
  • Answers to Exercises
  • Ways of Running CoffeeScript
  • Cheat Sheet for JavaScripters
  • Bibliography


Trevor Burnham is a full-stack web developer with a passion for new technologies. He is the founder of DataBraid, a startup developing data analysis and visualization tools that support remote collaboration. When on Twitter, he goes by @TrevorBurnham and @CoffeeScript. When offline, he’s usually in Cambridge, MA.