var example= {
        'fr' : {
            name: "France",
            country: "europe",
        },
        'es' : {
            name: "Espana",
            pre: "europe",
        },
    };
I would like to find an array name using a variable. Here there is an example that doesn't work:
var select = 'country';
console.log(example['fr'].select);
I would like that this piece of code return "europe", but it doesn't. How could I do in a simple way?
 
     
     
    