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
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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Gil Fink
About this chapter
Cite this chapter
Fink, G., Flatow, I. (2014). JavaScript for SPAs. In: Pro Single Page Application Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6674-7_2
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6674-7_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6673-0
Online ISBN: 978-1-4302-6674-7
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books