By registering with us, you'll be able to discuss, share and private message with other members of our community.

  1. Welcome to the 12ozProphet Forum...
    You are currently logged out and viewing our forum as a guest which only allows limited access to our discussions, photos and other forum features. If you are a 12ozProphet Member please login to get the full experience.

    If you are not a 12ozProphet Member, please take a moment to register to gain full access to our website and all of its features. As a 12ozProphet Member you will be able to post comments, start discussions, communicate privately with other members and access members-only content. Registration is fast, simple and free, so join today and be a part of the largest and longest running Graffiti, Art, Style & Culture forum online.

    Please note, if you are a 12ozProphet Member and are locked out of your account, you can recover your account using the 'lost password' link in the login form. If you no longer have access to the email you registered with, please email us at [email protected] and we'll help you recover your account. Welcome to the 12ozProphet Forum (and don't forget to follow @12ozprophet in Instagram)!

JavaScript help!!!

Discussion in 'Channel Zero' started by Ape Shit, Sep 23, 2004.

  1. Ape Shit

    Ape Shit Senior Member

    Joined: Jan 23, 2004 Messages: 1,083 Likes Received: 138
    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!