In this chapter, you’ll learn about OOP (Object-Oriented Programming) and how it relates to JavaScript. As an ASP.NET developer, you probably have some experience working with objects, and you may even be familiar with concepts such as inheritance. However, unless you’re already an experienced JavaScript programmer, you probably aren’t familiar with the way JavaScript objects and functions really work. This knowledge is necessary in order to understand how the Microsoft AJAX Library works, and this chapter will teach you the necessary foundations. More specifically, you will learn:
What encapsulation, inheritance, and polymorphism mean
How JavaScript functions work
How to use anonymous functions and closures
How to read a class diagram, and implement it using JavaScript code
How to work with JavaScript prototypes
How the execution context and scope affect the output of JavaScript functions
How to implement inheritance using closures and prototypes
What JSON...