class HelloWorld
hello: (name = 'World') ->
"Hello, #{name}!"
module.exports = HelloWorld
CoffeeScript is a language which transpiles into JavaScript, used for making dynamic websites (both in the web browser, and on the server). The transpiler is used to transform CoffeeScript code into JavaScript before running, to keep compability and the same performance of JavaScript while providing many new features!
CoffeeScript was created to provide a simplified way to write JavaScript, based on a blend of the Ruby and Python languages. One difference is the use of indentation and arrows to replace JavaScript's verbose function code, and introduces useful features from functional languages including pattern matching.
CoffeeScript is one of many new languages that transpiles to JavaScript, including TypeScript and Flow - the community is growing, and these types of languages are very popular.
Join the CoffeeScript trackWhat I like about it is that I am able to solve the challenges in a TDD way working in a environment that I am familiar (my own PC not a browser IDE) and the cherry on the top of the cake is that I have access to code reviews.
Once you join the CoffeeScript language track, you will receive support and feedback from our team of mentors. Here are the bios of a few of the mentors of this track.
These are a few of the 21 exercises on the CoffeeScript track. You can see all the exercises here.