Namespaces, Modules, and Classes

When you build Windows Store apps with the WinJS library, Microsoft recommends that you follow particular patterns when organizing your JavaScript code. In particular, Microsoft recommends that you organize your code into namespaces, modules, and classes.

By following these patterns, you can build JavaScript code that is less buggy and easier to maintain over time.

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed 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.