CHAPTER 2

image

JavaScript for SPAs

In Chapter 1 you learned about the history of web development and how we ended up with single page applications (SPAs). The major part of an SPA is its front end and the main language for writing SPAs is JavaScript. In order to write maintainable and reusable JavaScript code it is not enough just to learn JavaScript basics. In this chapter and in Chapter 3 as well, you will delve into techniques and patterns for writing better JavaScript code. In this chapter, you will get to know how to create and use JavaScript objects, how to create namespaces, and how to mimic encapsulation in your code. You will also get to ...

Get Pro Single Page Application Development: Using Backbone.js and ASP.NET 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.