Reintroducing JavaScript

This chapter covers ...

  • Variable scoping, function hoisting, and the execution context object
  • Explaining variable scope chains and why we use them
  • Creating JavaScript opbjects using prototypes
  • Writing self-executing anonymous functions
  • Using the module pattern and private variables
  • Exploiting closures for fun and profit

 

Related Files

Listing 2.1

Listing 2.2

Listing 2.3

Listing 2.4

Listing 2.5

Listing 2.6

Listing 2.7

Listing 2.8

Listing 2.9

Listing 2.10

Listing 2.11

Listing 2.12

JavaScript & jQuery: The Missing Manual

Publisher: Manning Publications Company

Author: Michael S. Mikowshi, et. al.

Year: 2014