I want to rename the keys in the object with the names of the array
let title = [
'Total Cryptocurrencies',
'Total Markets',
'Total Exchanges',
'Total Market Cap',
'Total 24h Volume',
];
var obj = {
1: 5,
2: 7,
3: 0,
4: 0,
5: 0,
};
So in the end I want to have my object like this:
var obj = {
'Total Cryptocurrencies': 5,
'Total Markets': 7,
'Total Exchanges': 0,
'Total Market Cap': 0,
'Total 24h Volume': 0,
};