I am calling a function that uses async/await. This function will get a string in the const getinfo
How can I return this "getinfo" string when calling the function like below?
oneFunction("hello")
oneFunction("hello")
function oneFunction(info) {
(async function () {
try {
const getinfo = await somefunction(info)
} catch (e) {
console.error(e);
}
})()
}