I am trying to build a sentence by letting the user input one word at a time and displaying the words backwords into a textbox. I have to use a do/while, while, or a for loop. Which would be the best to use. Thank You. I have it to where it will prompt the user for a word and put it in a box but the next time it prompts the box has a textbow for input but the words "undefined" are above it. I am using a js page and a html page. before I say any more can someone please suggest the right loop for the problem. Thank You