A language that transpiles to JavaScript. Use this tag for questions about programming with the CoffeeScript language.
From the CoffeeScript Homepage:
CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.
CoffeeScript can be used in any JavaScript environment. Included in a web page, it supports <script type="text/coffeescript">
tags; with node.js it can compile code on the command line, and it is also available as a Ruby gem.
The documentation and downloads can be found on the CoffeeScript website.
Common causes of unexpected behavior
- Check your whitespace. Indentation is SIGNIFICANT. Mixing SPACE and TAB in indentation will create problems. Make sure you understand the rules for whitespace and make sure you triple-check this.
Popular questions
- How do I define global variables in CoffeeScript?
- Clean way to remove element from javascript array (with jQuery, coffeescript)
- Trying to use CoffeeScript with JQuery, I get a "document is not defined" error
###Freely available CoffeeScript programming books
Video Tutorial
Codeschool CoffeeScript Tutorial - Awesome place to start with CoffeeScript.