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.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.