
Most offer a quick and dirty way to experiment with client-side (and sometimes server-side) code then share it with others. coffee files anywhere:ĬoffeeScript on the top left, compiled JavaScript output on the bottom right.A variety of front-end code playgrounds have appeared over the years. Latest Version: 2.7.0 # Install locally for a project: The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The golden rule of CoffeeScript is: “It’s just JavaScript.” The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime.

CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.

Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart.

Try CoffeeScript Introduction Overview CoffeeScript 2 What’s New in CoffeeScript 2 Compatibility Installation Usage Command Line Node.js Transpilation Language Reference Functions Strings Objects and Arrays Comments Lexical Scoping and Variable Safety If, Else, Unless, and Conditional Assignment Splats, or Rest Parameters/Spread Syntax Loops and Comprehensions Array Slicing and Splicing Everything is an Expression Operators and Aliases Existential Operator Destructuring Assignment Chaining Function Calls Bound (Fat Arrow) Functions Generator Functions Async Functions Classes Prototypal Inheritance Switch/When/Else Try/Catch/Finally Chained Comparisons Block Regular Expressions Tagged Template Literals Modules Embedded JavaScript JSX Type Annotations Literate CoffeeScript Source Maps Cake, and Cakefiles "text/coffeescript" Script Tags Integrations Build Tools Code Editors Frameworks Linters and Formatting Testing Resources Books Screencasts Examples Chat Annotated Source Contributing GitHub Unsupported ECMAScript Features let and const Named Functions and Function Declarations get and set Shorthand Syntax Breaking Changes From 1.x Bound (Fat Arrow) Functions Default Values Bound Generator Functions Classes super and this super and extends JSX and the Operators Literate CoffeeScript Parsing Argument Parsing and #! Lines Changelog Browser-Based Tests Version 1.x DocumentationĬoffeeScript is a little language that compiles into JavaScript.
