title: How to use prompt response in condition
body: <p>I am very new to JavaScript and working on getting the hang of it.</p>
  
  <p>I created some objects with a bunch of personal information properties. I was trying to make it so that when the website prompts the user ask for one of three names, when entering either name, to spit out where the person is from. Hope that makes sense. Here is the code. Remember a lot of this is just me practicing what I know. Some things may not seem like they should be there, but hey it is what it is.</p>
  
  <p>So how can i fill my condition depending to the user response?</p>
  
  <p><strong>JS :</strong></p>
  
  <pre><code>//Prompting who's information is needed//
  prompt("Who's information do you need? Zack, Steve, or Bill's?");
  
  //Objects here//
  var Zack = {
      firstname: 'Zack', 
      lastname: 'Doe',
      address: {
          street: '5555 Timberwood Lane',
          city: 'Hotel',
          state: 'OH'
      }
  };
  
  var Steve = {
    firstname: 'Steve',
    lastname: 'Jobs',
    address: {
      street: '1234 Apple Way',
      city: 'Appledom',
      state: 'CA'
      }
  };
  
  var Bill = {
    firstname: 'Bill',
    lastname: 'Gates',
    address: {
      street: '5678 Microsoft Ave',
      city: 'Windows',
      state: 'FL'
    }
  };
  
  //Just a basic function, input name log Hi + name. Just practice. 
  function greet(person){
      console.log('Hi ' + person.firstname);
  }
  
  //Functions used to retrieve information from objets Zack, Steve, Bill
  function retrieveState(person) {
      console.log (person.firstname + ' is from ' + person.address.street);
  }
  function retrieveCityState(person) {
    console.log(' and resides in ' + person.address.city + ', ' + person.address.state);
  }
  
  //I want to make it so if I enter either, Zack, Bill, or Steve, into the prompt, it will print their information
  if () {
    console.log(retrieveState(Zack) + retrieveCityState(Zack));
  }
  else if () {
    console.log(retrieveState(Steve) + retrieveCityState(Steve));
  }
  else if () {
    console.log(retrieveState(Bill) + retrieveCityState(Bill));
  }
  else {
    console.log("That person is unavailable!");
  }
  </code></pre>