Chapter 2. WinJS Fundamentals

The goal of this chapter is to explain the features included in the base WinJS library. These are the features that you will use in just about any application that you build.

The first part of this chapter is devoted to the topic of namespaces, modules, and classes. You learn the recommended patterns for organizing your JavaScript code.

Next, you learn how to take advantage of another feature of the base WinJS library called promises. Promises provide you with an elegant way to perform asynchronous programming in your JavaScript ...

Get Windows® 8 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.