Get Programming with JavaScript - Listings 16.02 and 16.03

Listings 16.02 and 16.03 - The fitness app

HTML:

<!-- fitnessApp.userData --> <script src="http://output.jsbin.com/tenuwis.js"></script> <!-- fitnessApp.User --> <script src="http://output.jsbin.com/fasebo.js"></script> <!-- fitnessApp.userView --> <script src="http://output.jsbin.com/yapahe.js"></script> <!-- fitnessApp.controller --> <script src="http://output.jsbin.com/goniro.js"></script>

JS:

var app = fitnessApp.init(fitnessApp.userData);