Summary: Using a random number generator, we develop a simple quiz that tests student knowledge of arithmetic.
Prerequisites: Alert boxes, expressions, and forms.
Provides: A quick introduction to the use of random numbers
References:
Random numbers in JavaScript,
The JavaScript library random.js
Create a page with one button, Quiz Me, that asks the user to add two numbers between 1 and 20. Your page should check the user's answer.
random.js library.
prompt()
dialogue box.
onClick="doItAll()"
This page created Wed Jun 11 14:30:23 1997 by SamR's Site Suite.