Chapter 1. The road to CoffeeScript

This chapter covers

  • Why CoffeeScript matters
  • How to get started
  • The evolution of JavaScript
  • Adapting to evolution by using CoffeeScript

CoffeeScript is a small, general-purpose programming language. It was created by Jeremy Ashkenas and first released in 2009. It’s a compiled language: you write your program in CoffeeScript and then use the compiler to translate it to an equivalent JavaScript program. When you run your program, it’s the compiled JavaScript that runs. Think of your CoffeeScript programs as being JavaScript programs underneath.

There are many programming languages that can compile to JavaScript, so many that they might even outnumber the programming languages that don’t compile to JavaScript. ...

Get CoffeeScript in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.