Advertisement

JavaScript for SPAs

  • Gil Fink
  • Ido Flatow
Chapter

Abstract

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 know some JavaScript pitfalls and hopefully learn to avoid them.

Keywords

Language Feature Constructor Function Outer Function Global Scope Array Object 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Gil Fink 2014

Authors and Affiliations

  • Gil Fink
    • 1
  • Ido Flatow
    • 1
  1. 1.Le ZionIsrael

Personalised recommendations