Latest Upload :

JavaScript-Techniques-Pro

JavaScript Techniques Pro




The evolution of JavaScript has been gradual but persistent. Over the course of the past
decade, the perception of JavaScript has evolved from a simple toy language into a respected
programming language used by corporations and developers across the globe to make incred-
ible applications. The modern JavaScript programming language—as it has always been—is
solid, robust, and incredibly powerful. Much of what I’ll be discussing in this book will show
what makes modern JavaScript applications so different from what they used to be. Many of
the ideas presented in this chapter aren’t new by any stretch, but their acceptance by thou-
sands of intelligent programmers has helped to refine their use and to make them what they
are today. So, without further ado, let’s look at modern JavaScript programming.
Object-Oriented JavaScript
Fr om a language perspective, there is absolutely nothing modern about object-oriented
programming or object-oriented JavaScript; JavaScript was designed to be a completely
object-oriented language from the start. However, as JavaScript has “evolved” in its use and
acceptance, programmers of other languages (such as Ruby, Python, and Perl) have taken
note and begun to bring their programmatic idioms over to JavaScript.
Object-oriented JavaScript code looks and behaves differently from other object-capable
languages. I’ll go into depth, discussing the various aspects of what makes it so unique, in
Chapter 2, but for now, let’s look at some of the basics to get a feel for how modern JavaScript
code is written. An example of two object constructors can be found in Listing 1-1, demon-
strating a simple object pairing that can be used for lectures in a school.


DOWNLOAD

Share this article :

Enregistrer un commentaire

 
Support :