Summary


This chapter provided a brief introduction to JavaScript. You saw how script is included in a page and explored techniques for minimizing the overhead associated with loading script. JavaScript is a dynamic language that allows types to be modified on the fly using the prototype. You can also create closures with functions that capture a given scope for even greater flexibility. Not only does JavaScript have support for the fundamental types of string, number, and Boolean, but it also treats functions as first-class types as well as objects. The late binding nature of JavaScript means that you can improve performance by caching aggressively. And you’ve also seen that JavaScript can be confusing with support for null as well as undefined types. The equality operators and strict equality operators can complicate things further, so being explicit about what you are after will eliminate frustration in the long run.




Professional ASP. NET 2.0 AJAX
Professional ASP.NET 2.0 AJAX (Programmer to Programmer)
ISBN: 0470109629
EAN: 2147483647
Year: 2004
Pages: 107

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net