February 2015
Intermediate to advanced
124 pages
2h 31m
English
The heart and soul of CoffeeScript consists of two characters: ->. That’s all it takes to define a new function, but don’t let the terseness fool you; as you’ll soon see, functions are powerful, versatile objects. Mastering them is the first step to mastering CoffeeScript.
While functions are the major players of this chapter, you’ll meet a cheerful supporting cast along the way: variables, strings, conditionals, and everything else you need to write useful functions. You’ll also get a refresher on two crucial concepts, scope and context, and see how they map to CoffeeScript.
If you’re an experienced JavaScripter, much of this chapter will be review. But keep an eye out for some of CoffeeScript’s most useful ...
Read now
Unlock full access