Discussion:
Q: Create a JavaScript program that will read a message string and a number from text boxes on a Web page. The program will then use those values to display some information to the user.
Use the JavaScript DHTML Playground to write JavaScript code that performs the following tasks:
- Read a message string from a text box ("Input 1").
- Read a number from a second text box ("Input 2").
- Display, in the page footer, the message string from "Input 1". Repeat the string the number of times your program read from "Input 2". Note:
Convert the value from "Input 2" into an integer by using the parseInt() function.