let CountryGobObj = {
"CountryName": "",
"CurrencySymbol": "",
"CurrencyConverter": ""
};
HttpService.country().then(response => {
// const CountryDet = response.data;
let CountryObj = {};
const CountryName = response.data.geoplugin_countryName;
const CurrencySymbol = response.data.geoplugin_currencySymbol;
const CurrencyConverter = response.data.geoplugin_currencyConverter;
CountryObj.CountryName = CountryName
CountryObj.CurrencySymbol = CurrencySymbol
CountryObj.CurrencyConverter = CurrencyConverter
console.log('1', CountryObj);
CountryGobObj = CountryObj;
console.log('2', CountryGobObj);
});
console.log('3', CountryGobObj);
return CountryGobObj;
it is executing in a order of 3 1 2 But I want 1 2 3 in a order can you please help me out