Summary
At the beginning of this chapter, we had a lot of knowledge but nothing to show for it. Now, we've got a snazzy single-page web application built with all the goodness of CoffeeScript! There's still a lot more that we can add to our application, but this is a pretty good start.
We learned:
How to set up a CoffeeScript application to behave like a normal JavaScript application
How to manipulate the DOM from CoffeeScript, and how to call back to CoffeeScript functions on events
How to define functions in CoffeeScript, how to name them, and how implicit return values work
How to use
switch
statements
Now that we've had a chance to flex our new CoffeeScript muscles, we're going to hit the gym again. We'll keep adding to our application as we go, but we've got a lot of new CoffeeScript syntax to learn! We'll explore some intermediate features of CoffeeScript, and use them in turn to improve our pet shop's web application.