O'Reilly logo

CoffeeScript, 2nd Edition by Trevor Burnham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mini-Project: All-Purpose Checkbook Balancer

By now, I assume you’ve abandoned Mint.com and embraced the checkbook balancer that we’ve built over the last two chapters. But there’s one feature that you might miss: the ability to track additional accounts beyond checking, savings, and your mattress. For the final version of the checkbook balancer, we’re going to add the ability to add and remove accounts. We’re also going refactor our code into classes (and into more than one file!), making it easier to think of the program in terms of separate, reasonably decoupled components.

Let’s start by installing our dependencies, which will be the same as in checkbooks2:

 $ ​​npm​​ ​​init
 $ ​​npm​​ ​​install​​ ​​--save​​ ​​inquirer
 $ ​​npm​​

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required