User input function not working properly?

  execution, javascript, node.js, user-input

In my node.js program, I have 2 user input functions. Before I added the 2nd one, it was working perfectly fine. After adding the 2nd one, the program directly goes to the 2nd one and executes that and completely skips the area of the code with the 1st user input function. I’m not sure why this could be? Is there a way I could have the entire program execute from top to bottom?

Source: Ask Javascript Questions