I don't really understand so thank you for understanding. I don't know how to return the function further in the code so I can use it further in the program. When I try to display the data outside of the names I get a error that my-data is not defined
axios
.request(options)
.then(function (response) {
// console.log(response.data.age + " ");
let my-data = response.data.age
console.log(my-data) // working
})
.catch(function (error) {
console.error(error);
}) ;
console.log(my-data) // not working
};