(I'm a beginner). If I wanted to set up a system for asking questions and returning user-inputted answers using if statements and variables, there will be a large amount of potential combinations of answers and I feel like I would be forced to write out a variable for every name in the world for example, and then do that again but with every potential age/name combination, etc. Obviously there is an easier solution. How do most people tackle this? 

I've tried this:

```
var yourName = prompt("What's your name?");

if (yourName == prompt.value) {
    console.log("It worked!");
}

```

It doesn't work, nothing shows up in console.

important: Can this be done with only if statements, variables, functions and arrays? Or will I have to use objects and switch statements?

edit: (this is just an example about shopping):

```
function selectPants () {

    var jeans = "jeans";
    var khakis = "khakis";

    var yourPants = prompt("What kind of pants do you want?");

    if (yourPants == jeans) {
        console.log("Okay, that will cost $10."), selectShirt ();
    } 
}   

function selectShirt () {

    var plaid = "plaid";
    var v-neck = "v-neck";

    var yourShirt = prompt("What shirt do you want?");

    if (yourShirt == plaid) {
      console.log("Okay, that will cost $5, your total so far is: ??"), selectShoes ();
    }
}

    selectPants ();

```

As you can see I would also need some addition system to add up the costs. Thanks a lot for any help!