Skip to Main Content
Single Page Web Applications
book

Single Page Web Applications

by Michael Mikowski, Josh Powell
September 2013
Intermediate to advanced content levelIntermediate to advanced
432 pages
12h 10m
English
Manning Publications
Content preview from Single Page Web Applications

Chapter 2. Reintroducing JavaScript

This chapter covers
  • Variable scoping, function hoisting, and the execution context object
  • Explaining variable scope chains and why we use them
  • Creating JavaScript objects using prototypes
  • Writing self-executing anonymous functions
  • Using the module pattern and private variables
  • Exploiting closures for fun and profit

This chapter reviews unique JavaScript concepts that we need to know if we’re to build a native JavaScript single page application of significant scale. The snippet of code in listing 2.1 from chapter 1 shows the concepts we’ll be covering. If you understand all of these how and why concepts then you might skim or skip this chapter and get straight to work on an SPA in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering JavaScript Single Page Application Development

Mastering JavaScript Single Page Application Development

Philip Klauzinski, John Moore

Publisher Resources

ISBN: 9781617290756Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link