Ape Shit Posted September 23, 2004 Share Posted September 23, 2004 Shit, so I'm in my Javascript programming class and I realize i have no clue how to do the homework. This shit is just too complicated. Does anyone with any Javascript skills have an idea how to do these things? Declare three variables. 3. Create a for loop. It should run 3 times. 4. Inside the for loop, create three if statements. 1. Inside the first if statement, if we are on the first iteration, prompt the user for their favoriate color, and put the result into the first variable. 2. Inside the second if statement, if we are on the second iteration, prompt the user for their age, and put the result into the second variable. 3. Inside the third if statement, if we are on the third iteration, prompt the user for their favorite food, and put the result into the third variable. 5. Below the loop, write out the user's responses. Be sure to include the HTML break tag after each write. Any ideas on how to do this shit are much appreciated! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.