Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this lesson, you learn about JavaScript's scope and how it can affect your application. You will write a function to determine the area of triangles and rectangles.
For this lesson, you need a text editor; any plain text editor will do. For Microsoft Windows users, Notepad is available by default on your system or you can download Microsoft's free Visual Web Developer Express (www.microsoft.com/express/web/) or Web Matrix (www.asp.net/webmatrix/). Mac OS X users can use TextMate, which comes as part of OS X, or they can download a trial for Coda (www.panic.com/coda/). Linux users can use the built-in VIM.