Chapter 3: Language Essentials

Return to Chapter 3

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Working with Functions That Return Values

See it run: Working with Functions That Return Values

Script 3.7

This JavaScript returns a value from a function which creates the random numbers for the cells on the Bingo card. Another function then uses this result.