title: Function doesn't update new valuables
body: <p>I'm fairly new to javascript and got stuck onto something. The problem is that the prompt in the following code never gets updated to the actual valuables, while the 'console.log' does for some reason. I'd really like to know why this happens, and if there's any way to make it work so that the prompt will update like the 'console.log' does. I've tried to move the positions of the variables a bit in the code, but as I'm not an expert, I'm not sure if the positions of the variables were ever correct.</p>
  
  <p>Help would be very appreciated, let me know if there's something not clear enough!</p>
  
  <pre><code>var alive = true;    
  var destinationArray = ["town ", "areas ", "bosses"];
  var destinationArraySet = 1;
  var allDestination = destinationArray.slice(0, destinationArraySet).join(' ').trim();
  var userDestinationPrompt = ("Where would you like to go? Available places: \n" + allDestination +".");
  
  var userDestination = function () {
      allDestination = destinationArray.slice(0, destinationArraySet).join(' ').trim();
      console.log(allDestination);
      userDestinationAnswer = prompt(userDestinationPrompt).toUpperCase();
      destinationArraySet++;
  };
  
  while (alive) {
      userDestination();
  }
  </code></pre>