JavaScript Assignment for Chapter 3 of Gosselin

Prompt the user to enter a variable equaling an expression, for example, a = 3*5.  The program should then display in the body of the page a statement that indicates the variable and the value of the expression when evaluated.  In this case, the statement should read exactly as follows: The value of a is 15.  If I had entered b = 4+6, the statement displayed should read exactly as follows: The value of b is 10.

Try to work this without hints, but if you get stuck, click one or more of the following buttons -- when you click each button, a JavaScript event handler will display a message. Feel free to look at my JavaScript.  When done, revise your home page to create a link to this new page, and FTP both your page and your revised home page to your website.

Revised: September 10, 2002