Educational JavaScripting : Exercises

[Workshop] [Contents] [Experiments] [First Page] [Custom] [Quiz/Score] [Story] [Quiz/Timed] [Quiz/Math] [Stats]


A Simple Quiz of Arithmetic

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.


[Workshop] [Contents] [Experiments] [First Page] [Custom] [Quiz/Score] [Story] [Quiz/Timed] [Quiz/Math] [Stats]

This page created Wed Jun 11 14:30:23 1997 by SamR's Site Suite.