Around and Around with Loops
Passing a Value to a Function
Detecting Objects
Working with Arrays
Working with Functions That Return Values
Updating Arrays
Using Do/While Loops
Calling Scripts Multiple Ways
Using Multi-level Conditionals
Handling Errors
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.
See it run: Working with Functions That Return Values
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.