8 Modules, Objects, and Methods

Over the next seven chapters, you will build a shopping-cart style application called CoffeeRun to manage coffee orders for a food truck. You will create CoffeeRun in three layers of code: the UI, the internal logic, and the server communication.

In this chapter, you will create the internal logic and interact with it through the DevTools console, as shown in Figure 8.1.

Figure 8.1  CoffeeRun, under the hood

CoffeeRun, under the hood

Modules

CoffeeRun is more complex than Ottergram, so it is important to organize your code to make it easier to debug and to extend. CoffeeRun will be structured in components, ...

Get Front-End Web Development: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.