flâneur — a map of the web's best reading

CoffeeScript

coffeescript.org · 28,717 words · saved by 1 readers

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. 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. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript. Latest Version: 2.7.0 CoffeeScript on the left, compiled JavaScript output on the right. The CoffeeScript is editable! The biggest change in CoffeeScript 2 is that now the CoffeeScript compiler produces modern JavaScript syntax (ES6, or ES2015 and later). A CoffeeScript => becomes a JS =>, a CoffeeScript class becomes a JS class and so on. Major new features in CoffeeScript 2 include asy

CoffeeScript alert 'Hello CoffeeScript!' alert('Hello CoffeeScript!');   Installation Usage Language Reference Type Annotations Literate CoffeeScript Source Maps Cake, and Cakefiles "text/coffeescript" Script Tags Integrations Resources GitHub Unsupported ECMAScript Features Breaking Changes From 1.x Changelog Browser-Based Tests Version 1.x Documentation 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. Th

Explore this link on the map →

saved by

related reading