Chapter 7. JavaScript: Functions

<feature><title>Objectives</title>

In this chapter you will learn:

<objective>

To construct programs modularly from small pieces called functions.

</objective>
<objective>

How to create new functions.

</objective>
<objective>

How to pass information between functions.

</objective>
<objective>

Simulation techniques that use random number generation.

</objective>
<objective>

How the visibility of identifiers is limited to specific regions of programs.

</objective>
</feature>
 

Form ever follows function.

 
 --Louis Sullivan
 

E pluribus unum. (One composed of many.)

 
 --Virgil
 

O! call back yesterday, bid time return.

 
 --William Shakespeare
 

Call me Ishmael.

 
 --Herman Melville
 

When you call me that, smile.

 
 --Owen Wister

Outline

Get Deitel® Developer Series AJAX, Rich Internet Applications, and Web Development for Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.