O'Reilly logo

The Book of JavaScript, 2nd Edition by thau!

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

The To Do List Client Side, Part 2: The JavaScript

Now let's turn to the JavaScript code. Imagine you are assigned the task of developing the JavaScript for this To Do list application. Where would you start? Even though this application is simple when compared to something like Google Maps, it is still complicated enough to make the task of writing the code seem overwhelming.

When faced with a large problem, it is often helpful to apply a problem solving technique called divide and conquer. To solve a large problem, divide the large task into smaller ones, and then conquer the smaller projects one at a time.

For example, the code in the To Do list application can be divided into several different feature sets:

  • Logging in and out

  • Displaying available ...

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