I have 2 Arrays where the first Array is for the key, and the second Array for the values.

```
var getKeys = Object.keys(data); // ['[name]', '[address]', '[gender]']
var getValues = Object.values(data); // ['Franky', 'Lemon Street', 'Male']

```

and I have a string like this :

```
'My name is [name]. I live at [address]. My gender is [gender].'

```

I want to replace the keys above with Array values like this :

```
'My name is Franky. I live at Lemon Street. My gender is Male.'

```

I have tried using map like this :

```
getKeys.map((key) => {
    getValues.map((value) => {
        const replaceValue = dataValue.replace(key, value);
        console.log(replaceValue)
    });
});

```

But only the last value replaced. How to replace for all keys?